{
 "cells": [
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "- **地理编码**\n",
    "- **逆地理编码**\n",
    "- **路径规划**\n",
    "- **行政区域查询**\n",
    "- **搜索POI**\n",
    "- **IP定位**\n",
    "- **静态地图**\n",
    "- **坐标转换**\n",
    "- **天气查询**\n",
    "- **输入提示**\n",
    "- **交通态势**"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## 地理编码\n",
    "地理编码/逆地理编码 API 是通过 HTTP/HTTPS 协议访问远程服务的接口，提供结构化地址与经纬度之间的相互转化的能力。\n",
    "结构化地址的定义： 首先，地址肯定是一串字符，内含国家、省份、城市、区县、城镇、乡村、街道、门牌号码、屋邨、大厦等建筑物名称。按照由大区域名称到小区域名称组合在一起的字符。一个有效的地址应该是独一无二的。注意：针对大陆、港、澳地区的地理编码转换时可以将国家信息选择性的忽略，但省、市、城镇等级别的地址构成是不能忽略的。暂时不支持返回台湾省的详细地址信息。\n",
    "### 应用方案或场景\n",
    "对于一般用户来说，得到经纬度的数值是没有用处的，只要得到包含目标的地图就可以了。对于后台服务，则会经历两个步骤：第一步，通过地理编码查询得到某地的地理坐标；第二步，取得一幅这个坐标附近的地图，把\"某地\"标在这个地图上显示给用户。  "
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "**准备工作**"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 84,
   "metadata": {},
   "outputs": [],
   "source": [
    "import requests,json\n",
    "import pandas as pd\n",
    "key='025f09933411b23de9c674584a6bbda9' "
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "**用函数封装**"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 85,
   "metadata": {},
   "outputs": [],
   "source": [
    "def geo(key,address,city=None,batch='false',sig=None,output='json',callback=None):\n",
    "    ##获取的Api的地理编码信息\n",
    "    url='https://restapi.amap.com/v3/geocode/geo?parameters'\n",
    "    params={\n",
    "    'key':key,\n",
    "    'address':address,\n",
    "    'city':city,\n",
    "    'batch':batch,\n",
    "    'sig':sig,\n",
    "    'output':output,\n",
    "    'callback':callback\n",
    "    }\n",
    "    response=requests.get(url,params=params)\n",
    "    results=response.json()['geocodes'][0]['location']\n",
    "    # return\n",
    "    return results"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 86,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'113.291103,23.092973'"
      ]
     },
     "execution_count": 86,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "address1='广东省广州市中山大学'\n",
    "中大_location=geo(key,address1,city=None,batch='false',sig=None,output='json',callback=None)\n",
    "中大_location"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## 逆地理编码\n",
    "逆地理编码：将经纬度转换为详细结构化的地址，且返回附近周边的POI、AOI信息。\n",
    "### 应用方案或场景\n",
    "据指定的地理坐标，从空间数据库中分别查询出该坐标所在的城市名称、区域名称、街道名称以及附近的地标，然后把这些信息组合成一个­完整的地址描述。例如：xx市xx区xx村xx大街xx号xxxx附近。"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 88,
   "metadata": {},
   "outputs": [],
   "source": [
    "def regeo(key,location,poitype=None,radius='1000',extensions='base',batch='false',roadlevel=None,sig=None,\n",
    "          output='json',callback=None,homeorcorp='0'):\n",
    "    ##经纬度坐标\n",
    "    url='https://restapi.amap.com/v3/geocode/regeo?parameters'\n",
    "    params={\n",
    "        'key':key,\n",
    "        'location':location,\n",
    "        'poitype':poitype,\n",
    "        'radius':radius,\n",
    "        'extensions':extensions,\n",
    "        'batch':batch,\n",
    "        'sig':sig,\n",
    "        'output':output,\n",
    "        'callback':callback,\n",
    "        'homeorcorp':homeorcorp\n",
    "    }\n",
    "    response=requests.get(url,params)\n",
    "    results=response.json()\n",
    "    return results"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 89,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'regeocode': {'addressComponent': {'city': '广州市',\n",
       "   'province': '广东省',\n",
       "   'adcode': '440105',\n",
       "   'district': '海珠区',\n",
       "   'towncode': '440105002000',\n",
       "   'streetNumber': {'number': '95号',\n",
       "    'location': '113.291273,23.092688',\n",
       "    'direction': '东南',\n",
       "    'distance': '36.1493',\n",
       "    'street': '新港西路'},\n",
       "   'country': '中国',\n",
       "   'township': '新港街道',\n",
       "   'businessAreas': [{'location': '113.316550,23.094556',\n",
       "     'name': '新港',\n",
       "     'id': '440105'},\n",
       "    {'location': '113.281913,23.092278', 'name': '晓港', 'id': '440105'},\n",
       "    {'location': '113.296737,23.085197', 'name': '凤阳', 'id': '440105'}],\n",
       "   'building': {'name': [], 'type': []},\n",
       "   'neighborhood': {'name': [], 'type': []},\n",
       "   'citycode': '020'},\n",
       "  'formatted_address': '广东省广州市海珠区新港街道上海浦东发展银行(中大支行)中山大学广州校区南校园'},\n",
       " 'info': 'OK',\n",
       " 'infocode': '10000'}"
      ]
     },
     "execution_count": 89,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "location1=\"113.291103,23.092973\"\n",
    "regeo(key,location1,poitype=None,radius='1000',extensions='base',batch='false',roadlevel=None,sig=None,\n",
    "          output='json',callback=None,homeorcorp='0')"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## 路径规划\n",
    "路径规划API是一套以HTTP形式提供的步行、公交、驾车查询及行驶距离计算接口，返回JSON 或 XML格式的查询数据，用于实现路径规划功能的开发。 \n",
    "由于道路/数据/算法的变更，很可能存在间隔一段时间后请求相同起终点的经纬度返回不同结果。\n",
    "### 应用方案或场景\n",
    "规划地铁，公交，驾车路线"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 90,
   "metadata": {},
   "outputs": [],
   "source": [
    "def walking(key,origin,location,sig=None,output='json',callback=None):\n",
    "    #步行路径规划\n",
    "    url='https://restapi.amap.com/v3/direction/walking?parameters'\n",
    "    params={\n",
    "        'key':key,\n",
    "        'origin':origin,\n",
    "        'destination':location,\n",
    "        'sig':sig,\n",
    "        'output':output,\n",
    "        'callback':callback,     \n",
    "    }\n",
    "    response=requests.get(url,params)\n",
    "    results=response.json()\n",
    "    # return\n",
    "    return results"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 91,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'info': 'ok',\n",
       " 'infocode': '10000',\n",
       " 'count': '1',\n",
       " 'route': {'origin': '113.291103,23.092973',\n",
       "  'destination': '113.679287,23.632575',\n",
       "  'paths': [{'distance': '82787',\n",
       "    'duration': '66230',\n",
       "    'steps': [{'instruction': '向西步行66米左转',\n",
       "      'orientation': '西',\n",
       "      'road': [],\n",
       "      'distance': '66',\n",
       "      'duration': '53',\n",
       "      'polyline': '113.291089,23.092912;113.290451,23.093008',\n",
       "      'action': '左转',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '向南步行29米右转',\n",
       "      'orientation': '南',\n",
       "      'road': [],\n",
       "      'distance': '29',\n",
       "      'duration': '23',\n",
       "      'polyline': '113.290447,23.093008;113.290417,23.092899;113.290417,23.092899;113.290378,23.092756',\n",
       "      'action': '右转',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿新港西路向西步行173米右转',\n",
       "      'orientation': '西',\n",
       "      'road': '新港西路',\n",
       "      'distance': '173',\n",
       "      'duration': '138',\n",
       "      'polyline': '113.290373,23.092752;113.289323,23.092943;113.289323,23.092943;113.288715,23.093051',\n",
       "      'action': '右转',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿怡乐路向西北步行31米向右前方行走',\n",
       "      'orientation': '西北',\n",
       "      'road': '怡乐路',\n",
       "      'distance': '31',\n",
       "      'duration': '25',\n",
       "      'polyline': '113.288711,23.093051;113.288585,23.093303',\n",
       "      'action': '向右前方行走',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿怡乐路向北步行1387米左转',\n",
       "      'orientation': '北',\n",
       "      'road': '怡乐路',\n",
       "      'distance': '1387',\n",
       "      'duration': '1110',\n",
       "      'polyline': '113.288581,23.093303;113.288576,23.093529;113.288576,23.093529;113.288559,23.093737;113.288559,23.093737;113.288529,23.093984;113.288529,23.093984;113.288498,23.094214;113.288498,23.094214;113.288498,23.094236;113.288498,23.094236;113.288477,23.094457;113.288477,23.094457;113.288446,23.094674;113.288446,23.094674;113.288407,23.09503;113.288407,23.09503;113.288372,23.095369;113.288372,23.095369;113.288303,23.095968;113.288303,23.095968;113.288303,23.096085;113.288303,23.096085;113.288303,23.096194;113.288312,23.096302;113.288312,23.096302;113.288329,23.096345;113.288329,23.096345;113.288403,23.096463;113.288542,23.096558;113.288694,23.096615;113.289197,23.096723;113.289197,23.096723;113.289358,23.096806;113.289358,23.096806;113.28954,23.096892;113.289792,23.09704;113.289792,23.09704;113.28997,23.09717;113.28997,23.09717;113.290382,23.097509;113.290382,23.097509;113.290877,23.097917;113.290877,23.097917;113.291059,23.098056;113.291059,23.098056;113.291562,23.098472;113.291562,23.098472;113.291684,23.098576;113.291762,23.098672;113.291814,23.098767;113.291814,23.098767;113.291853,23.098885;113.291862,23.098971;113.29184,23.099188;113.29184,23.099188;113.291819,23.099371;113.291819,23.099371;113.291766,23.099714;113.291766,23.099714;113.29171,23.100191;113.29171,23.100191;113.291597,23.100755;113.291597,23.100755;113.291584,23.100812;113.291584,23.100812;113.291523,23.101189;113.291523,23.101189;113.291476,23.101493;113.291476,23.101493;113.291406,23.102018;113.291406,23.102018;113.291345,23.102491;113.291345,23.102491;113.291315,23.102726;113.291315,23.102726;113.291276,23.103012;113.291276,23.103012;113.291254,23.103203;113.291254,23.103203;113.291224,23.103446;113.291224,23.103602;113.291228,23.103711;113.291259,23.103806;113.291419,23.104171',\n",
       "      'action': '左转',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿滨江中路向西北步行585米左转',\n",
       "      'orientation': '西北',\n",
       "      'road': '滨江中路',\n",
       "      'distance': '585',\n",
       "      'duration': '468',\n",
       "      'polyline': '113.291419,23.104171;113.290881,23.104605;113.290881,23.104605;113.290499,23.104944;113.290499,23.104944;113.290074,23.105326;113.290074,23.105326;113.289661,23.105673;113.289661,23.105673;113.288859,23.106319;113.288859,23.106319;113.288806,23.106354;113.288806,23.106354;113.288333,23.106693;113.288333,23.106693;113.288003,23.106923;113.287014,23.107548',\n",
       "      'action': '左转',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '步行47米右转',\n",
       "      'orientation': [],\n",
       "      'road': [],\n",
       "      'distance': '47',\n",
       "      'duration': '38',\n",
       "      'polyline': '113.28701,23.107548;113.286984,23.1075;113.286836,23.107561;113.286836,23.107561;113.286693,23.107604;113.286693,23.107604;113.286602,23.10763',\n",
       "      'action': '右转',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '20'},\n",
       "     {'instruction': '沿东湖路向北步行418米向右前方行走',\n",
       "      'orientation': '北',\n",
       "      'road': '东湖路',\n",
       "      'distance': '418',\n",
       "      'duration': '334',\n",
       "      'polyline': '113.286597,23.10763;113.286701,23.107969;113.286701,23.107969;113.28707,23.109106;113.28707,23.109106;113.287205,23.109518;113.287205,23.109518;113.287769,23.111272',\n",
       "      'action': '向右前方行走',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '步行6米左转',\n",
       "      'orientation': [],\n",
       "      'road': [],\n",
       "      'distance': '6',\n",
       "      'duration': '5',\n",
       "      'polyline': '113.287765,23.111272;113.287826,23.111263',\n",
       "      'action': '左转',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '步行79米直行',\n",
       "      'orientation': [],\n",
       "      'road': [],\n",
       "      'distance': '79',\n",
       "      'duration': '63',\n",
       "      'polyline': '113.287826,23.111259;113.287956,23.111589;113.288038,23.111944',\n",
       "      'action': '直行',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '21'},\n",
       "     {'instruction': '步行42米左转',\n",
       "      'orientation': [],\n",
       "      'road': [],\n",
       "      'distance': '42',\n",
       "      'duration': '34',\n",
       "      'polyline': '113.288038,23.111944;113.288121,23.112313',\n",
       "      'action': '左转',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿沿江东路向西北步行21米右转',\n",
       "      'orientation': '西北',\n",
       "      'road': '沿江东路',\n",
       "      'distance': '21',\n",
       "      'duration': '17',\n",
       "      'polyline': '113.288121,23.112313;113.287934,23.1124',\n",
       "      'action': '右转',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿东湖路辅路向东北步行31米向左前方行走',\n",
       "      'orientation': '东北',\n",
       "      'road': '东湖路辅路',\n",
       "      'distance': '31',\n",
       "      'duration': '25',\n",
       "      'polyline': '113.28793,23.1124;113.288021,23.1124;113.28809,23.112426;113.288121,23.112465;113.288151,23.112552',\n",
       "      'action': '向左前方行走',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿东湖路辅路向北步行42米直行',\n",
       "      'orientation': '北',\n",
       "      'road': '东湖路辅路',\n",
       "      'distance': '42',\n",
       "      'duration': '34',\n",
       "      'polyline': '113.288151,23.112552;113.288177,23.112665;113.288177,23.112665;113.288242,23.112921',\n",
       "      'action': '直行',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿东湖路入口步行340米直行',\n",
       "      'orientation': [],\n",
       "      'road': '东湖路入口',\n",
       "      'distance': '340',\n",
       "      'duration': '272',\n",
       "      'polyline': '113.288242,23.112921;113.288281,23.11309;113.288281,23.11309;113.288481,23.11411;113.288481,23.11411;113.288511,23.114258;113.288511,23.114258;113.288581,23.114631;113.288581,23.114631;113.288741,23.115451;113.288763,23.115651;113.288763,23.115794;113.28875,23.115959',\n",
       "      'action': '直行',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿东湖路向北步行90米向右前方行走',\n",
       "      'orientation': '北',\n",
       "      'road': '东湖路',\n",
       "      'distance': '90',\n",
       "      'duration': '72',\n",
       "      'polyline': '113.288746,23.115959;113.288746,23.115977;113.288746,23.115977;113.288793,23.116133;113.288793,23.116133;113.288945,23.116645;113.288945,23.116645;113.288993,23.116771',\n",
       "      'action': '向右前方行走',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿东湖路步行647米向右前方行走',\n",
       "      'orientation': [],\n",
       "      'road': '东湖路',\n",
       "      'distance': '647',\n",
       "      'duration': '518',\n",
       "      'polyline': '113.288993,23.116771;113.289106,23.116853;113.289123,23.116875;113.28957,23.117995;113.28957,23.117995;113.289783,23.118537;113.289783,23.118537;113.289944,23.118963;113.289944,23.118963;113.29003,23.119158;113.29003,23.119158;113.290052,23.119219;113.290052,23.119219;113.290161,23.11947;113.290161,23.11947;113.290243,23.119709;113.290243,23.119709;113.290534,23.120495;113.290816,23.121185;113.290816,23.121185;113.291202,23.12227',\n",
       "      'action': '向右前方行走',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿东华北路向东北步行17米左转',\n",
       "      'orientation': '东北',\n",
       "      'road': '东华北路',\n",
       "      'distance': '17',\n",
       "      'duration': '14',\n",
       "      'polyline': '113.291202,23.12227;113.29135,23.122352',\n",
       "      'action': '左转',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '步行36米向左前方行走',\n",
       "      'orientation': [],\n",
       "      'road': [],\n",
       "      'distance': '36',\n",
       "      'duration': '29',\n",
       "      'polyline': '113.29135,23.122352;113.291202,23.122652',\n",
       "      'action': '向左前方行走',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '1'},\n",
       "     {'instruction': '沿东华北路向西南步行9米右转',\n",
       "      'orientation': '西南',\n",
       "      'road': '东华北路',\n",
       "      'distance': '9',\n",
       "      'duration': '7',\n",
       "      'polyline': '113.291198,23.122652;113.291115,23.122609',\n",
       "      'action': '右转',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '步行24米右转',\n",
       "      'orientation': [],\n",
       "      'road': [],\n",
       "      'distance': '24',\n",
       "      'duration': '19',\n",
       "      'polyline': '113.291111,23.122609;113.291111,23.122639;113.291202,23.1227;113.291172,23.122765',\n",
       "      'action': '右转',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '20'},\n",
       "     {'instruction': '沿百子横路向东北步行131米',\n",
       "      'orientation': '东北',\n",
       "      'road': '百子横路',\n",
       "      'distance': '131',\n",
       "      'duration': '105',\n",
       "      'polyline': '113.291168,23.122765;113.29122,23.122773;113.29122,23.122773;113.291311,23.122808;113.291736,23.123056;113.291853,23.123129;113.291997,23.123247;113.291997,23.123247;113.292083,23.123307;113.292187,23.123342;113.292187,23.123342;113.292274,23.123381',\n",
       "      'action': [],\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿百子横路向东北步行138米左转',\n",
       "      'orientation': '东北',\n",
       "      'road': '百子横路',\n",
       "      'distance': '138',\n",
       "      'duration': '110',\n",
       "      'polyline': '113.292274,23.123381;113.292318,23.123407;113.292496,23.123563;113.292496,23.123563;113.292852,23.123893;113.292852,23.123893;113.293225,23.124258',\n",
       "      'action': '左转',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿中山二路向西步行54米右转',\n",
       "      'orientation': '西',\n",
       "      'road': '中山二路',\n",
       "      'distance': '54',\n",
       "      'duration': '43',\n",
       "      'polyline': '113.293225,23.124258;113.292704,23.124384',\n",
       "      'action': '右转',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿执信南路向北步行351米左转',\n",
       "      'orientation': '北',\n",
       "      'road': '执信南路',\n",
       "      'distance': '351',\n",
       "      'duration': '281',\n",
       "      'polyline': '113.2927,23.124384;113.29276,23.124566;113.29276,23.124566;113.293043,23.125004;113.293043,23.125004;113.293242,23.125312;113.293242,23.125312;113.293333,23.125469;113.293355,23.125543;113.293355,23.125543;113.293364,23.125634;113.293268,23.126146;113.293268,23.126146;113.293199,23.126454;113.293199,23.126454;113.293056,23.127409',\n",
       "      'action': '左转',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿执信南路向西北步行342米向右前方行走',\n",
       "      'orientation': '西北',\n",
       "      'road': '执信南路',\n",
       "      'distance': '342',\n",
       "      'duration': '274',\n",
       "      'polyline': '113.293051,23.127409;113.292444,23.127786;113.292444,23.127786;113.292183,23.127969;113.292092,23.128064;113.292018,23.128177;113.291962,23.128307;113.291897,23.128824;113.291897,23.128824;113.291866,23.129136;113.291866,23.129136;113.291819,23.129744;113.291819,23.129744;113.291797,23.130017',\n",
       "      'action': '向右前方行走',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '步行183米右转',\n",
       "      'orientation': [],\n",
       "      'road': [],\n",
       "      'distance': '183',\n",
       "      'duration': '146',\n",
       "      'polyline': '113.291793,23.130017;113.291866,23.130017;113.291866,23.130017;113.291858,23.130252;113.291858,23.130252;113.291827,23.130686;113.291827,23.130686;113.291862,23.130725;113.291862,23.130725;113.291914,23.130807;113.291927,23.130881;113.291927,23.130938;113.291897,23.131037;113.291897,23.131037;113.291788,23.131124;113.291788,23.131124;113.291749,23.131458;113.291749,23.131458;113.291675,23.131458',\n",
       "      'action': '右转',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '4'},\n",
       "     {'instruction': '沿执信南路步行91米右转',\n",
       "      'orientation': [],\n",
       "      'road': '执信南路',\n",
       "      'distance': '91',\n",
       "      'duration': '73',\n",
       "      'polyline': '113.291671,23.131454;113.291658,23.131766;113.291636,23.13184;113.291636,23.13184;113.291584,23.132279',\n",
       "      'action': '右转',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿先烈南路向东北步行311米向右前方行走',\n",
       "      'orientation': '东北',\n",
       "      'road': '先烈南路',\n",
       "      'distance': '311',\n",
       "      'duration': '249',\n",
       "      'polyline': '113.29158,23.132279;113.291723,23.132318;113.291753,23.132339;113.291897,23.132483;113.291897,23.132483;113.292075,23.132717;113.292075,23.132717;113.292409,23.133125;113.292409,23.133125;113.292669,23.133442;113.292669,23.133442;113.293125,23.134019;113.293125,23.134019;113.293424,23.134384;113.293503,23.134444',\n",
       "      'action': '向右前方行走',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '步行93米向右前方行走',\n",
       "      'orientation': [],\n",
       "      'road': [],\n",
       "      'distance': '93',\n",
       "      'duration': '74',\n",
       "      'polyline': '113.293503,23.134444;113.293806,23.134531;113.293806,23.134531;113.293898,23.134596;113.293898,23.134596;113.293967,23.134679;113.293997,23.134748;113.294019,23.134983;113.294019,23.134983;113.29401,23.135022',\n",
       "      'action': '向右前方行走',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿先烈中路向东北步行1190米向左前方行走',\n",
       "      'orientation': '东北',\n",
       "      'road': '先烈中路',\n",
       "      'distance': '1190',\n",
       "      'duration': '952',\n",
       "      'polyline': '113.294006,23.135022;113.29424,23.135386;113.29424,23.135386;113.294531,23.135799;113.294531,23.135799;113.294926,23.136324;113.294926,23.136324;113.295126,23.136632;113.295126,23.136632;113.295299,23.13691;113.295299,23.13691;113.29536,23.136997;113.29536,23.136997;113.295538,23.137231;113.29579,23.137496;113.29579,23.137496;113.295859,23.137561;113.295859,23.137561;113.296402,23.138064;113.296402,23.138064;113.296736,23.138381;113.296736,23.138381;113.297057,23.138655;113.297118,23.138793;113.297118,23.138793;113.297322,23.138976;113.297322,23.138976;113.297704,23.139319;113.297704,23.139319;113.298346,23.139852;113.298346,23.139852;113.298902,23.140291;113.298902,23.140291;113.29898,23.14036;113.29898,23.14036;113.299145,23.140499;113.299145,23.140499;113.300178,23.141367;113.300178,23.141367;113.30056,23.141684;113.30056,23.141684;113.300742,23.14184;113.300742,23.14184;113.301076,23.142114;113.301076,23.142114;113.301541,23.142587;113.301541,23.142587;113.301892,23.14296',\n",
       "      'action': '向左前方行走',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿永福路向北步行18米向右前方行走',\n",
       "      'orientation': '北',\n",
       "      'road': '永福路',\n",
       "      'distance': '18',\n",
       "      'duration': '14',\n",
       "      'polyline': '113.301892,23.14296;113.301931,23.143121',\n",
       "      'action': '向右前方行走',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿先烈中路步行623米向左前方行走',\n",
       "      'orientation': [],\n",
       "      'road': '先烈中路',\n",
       "      'distance': '623',\n",
       "      'duration': '498',\n",
       "      'polyline': '113.301931,23.143121;113.30201,23.143299;113.302374,23.143659;113.302374,23.143659;113.302891,23.144171;113.303138,23.144358;113.30326,23.14441;113.30326,23.14441;113.30342,23.144601;113.30342,23.144601;113.303594,23.144822;113.303594,23.144822;113.303893,23.145286;113.304227,23.145716;113.304227,23.145716;113.304466,23.145911;113.304631,23.146024;113.305061,23.146246;113.305061,23.146246;113.305156,23.146289;113.305156,23.146289;113.305347,23.146367;113.305347,23.146367;113.305477,23.146419;113.305477,23.146419;113.305881,23.146576;113.305881,23.146576;113.306419,23.146771',\n",
       "      'action': '向左前方行走',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿先烈东路向东北步行667米向右前方行走',\n",
       "      'orientation': '东北',\n",
       "      'road': '先烈东路',\n",
       "      'distance': '667',\n",
       "      'duration': '534',\n",
       "      'polyline': '113.306419,23.146771;113.306693,23.14694;113.306797,23.147023;113.306797,23.147023;113.307036,23.147235;113.307036,23.147235;113.307144,23.147361;113.307357,23.147695;113.307357,23.147695;113.307478,23.14793;113.307478,23.14793;113.307678,23.148281;113.307678,23.148281;113.30786,23.148572;113.30786,23.148572;113.308307,23.149049;113.308307,23.149049;113.308659,23.14941;113.308659,23.14941;113.308737,23.149492;113.308737,23.149492;113.308837,23.149596;113.308837,23.149596;113.308967,23.149774;113.308967,23.149774;113.309284,23.150191;113.309284,23.150191;113.309492,23.150456;113.309492,23.150456;113.309644,23.150668;113.309644,23.150668;113.309774,23.150846;113.309774,23.150846;113.310065,23.151241;113.310065,23.151241;113.310291,23.151554;113.310339,23.151602',\n",
       "      'action': '向右前方行走',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿先烈东路向东步行306米直行',\n",
       "      'orientation': '东',\n",
       "      'road': '先烈东路',\n",
       "      'distance': '306',\n",
       "      'duration': '245',\n",
       "      'polyline': '113.310339,23.151602;113.310408,23.151645;113.310547,23.151688;113.310981,23.151697;113.310981,23.151697;113.311515,23.151697;113.311515,23.151697;113.313307,23.151636',\n",
       "      'action': '直行',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿禺东西路向东步行32米左转',\n",
       "      'orientation': '东',\n",
       "      'road': '禺东西路',\n",
       "      'distance': '32',\n",
       "      'duration': '26',\n",
       "      'polyline': '113.313307,23.151632;113.313628,23.151628',\n",
       "      'action': '左转',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '步行22米左转',\n",
       "      'orientation': [],\n",
       "      'road': [],\n",
       "      'distance': '22',\n",
       "      'duration': '18',\n",
       "      'polyline': '113.313628,23.151623;113.313741,23.151801',\n",
       "      'action': '左转',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '1'},\n",
       "     {'instruction': '沿广州大道北步行28米右转',\n",
       "      'orientation': [],\n",
       "      'road': '广州大道北',\n",
       "      'distance': '28',\n",
       "      'duration': '22',\n",
       "      'polyline': '113.313741,23.151801;113.313524,23.151936',\n",
       "      'action': '右转',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿广州大道北向北步行129米',\n",
       "      'orientation': '北',\n",
       "      'road': '广州大道北',\n",
       "      'distance': '129',\n",
       "      'duration': '103',\n",
       "      'polyline': '113.31352,23.151936;113.313472,23.152214;113.313477,23.152374;113.313507,23.152622;113.313559,23.152812;113.313702,23.153069',\n",
       "      'action': [],\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿广州大道北向东北步行103米右转',\n",
       "      'orientation': '东北',\n",
       "      'road': '广州大道北',\n",
       "      'distance': '103',\n",
       "      'duration': '82',\n",
       "      'polyline': '113.313702,23.153069;113.314063,23.153251;113.314063,23.153251;113.314206,23.153307;113.314262,23.153342;113.314306,23.153398;113.314306,23.153398;113.314488,23.15362',\n",
       "      'action': '右转',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿广园东路辅路向东步行41米右转',\n",
       "      'orientation': '东',\n",
       "      'road': '广园东路辅路',\n",
       "      'distance': '41',\n",
       "      'duration': '33',\n",
       "      'polyline': '113.314488,23.15362;113.314878,23.153524',\n",
       "      'action': '右转',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '步行213米右转',\n",
       "      'orientation': [],\n",
       "      'road': [],\n",
       "      'distance': '213',\n",
       "      'duration': '170',\n",
       "      'polyline': '113.314878,23.153524;113.314861,23.153437;113.314861,23.153437;113.314549,23.153503;113.314549,23.153503;113.314297,23.153685;113.314297,23.153685;113.314497,23.153941;113.314497,23.153941;113.314379,23.154366;113.314379,23.154366;113.314518,23.154497;113.314518,23.154497;113.31477,23.154731',\n",
       "      'action': '右转',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '4'},\n",
       "     {'instruction': '向东步行18米左转',\n",
       "      'orientation': '东',\n",
       "      'road': [],\n",
       "      'distance': '18',\n",
       "      'duration': '14',\n",
       "      'polyline': '113.31477,23.154735;113.314939,23.15467',\n",
       "      'action': '左转',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿广州大道北向东北步行48米向左前方行走',\n",
       "      'orientation': '东北',\n",
       "      'road': '广州大道北',\n",
       "      'distance': '48',\n",
       "      'duration': '38',\n",
       "      'polyline': '113.314939,23.154666;113.315252,23.155',\n",
       "      'action': '向左前方行走',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿广州大道北向北步行12米向右前方行走',\n",
       "      'orientation': '北',\n",
       "      'road': '广州大道北',\n",
       "      'distance': '12',\n",
       "      'duration': '10',\n",
       "      'polyline': '113.315252,23.155;113.31526,23.155113',\n",
       "      'action': '向右前方行走',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿广州大道北向北步行3527米向右前方行走',\n",
       "      'orientation': '北',\n",
       "      'road': '广州大道北',\n",
       "      'distance': '3527',\n",
       "      'duration': '2822',\n",
       "      'polyline': '113.31526,23.155113;113.315273,23.155217;113.315299,23.155282;113.315916,23.155955;113.315916,23.155955;113.316623,23.156753;113.316771,23.156957;113.316771,23.156957;113.316871,23.157105;113.317161,23.157687;113.317161,23.157687;113.317214,23.157873;113.317214,23.157873;113.317374,23.158299;113.317374,23.158299;113.317669,23.158958;113.317669,23.158958;113.317739,23.159149;113.317739,23.159149;113.317821,23.159462;113.317821,23.159462;113.31786,23.159635;113.31786,23.159635;113.317886,23.159692;113.317886,23.159692;113.317947,23.16003;113.317947,23.160221;113.317925,23.160408;113.317925,23.160408;113.317804,23.161237;113.317804,23.161237;113.317661,23.161944;113.317422,23.162652;113.317422,23.162652;113.317279,23.16306;113.317279,23.16306;113.317218,23.163299;113.31717,23.163555;113.31717,23.163555;113.317088,23.164084;113.317088,23.164084;113.317057,23.164579;113.317057,23.164579;113.317062,23.164705;113.317062,23.164705;113.317096,23.165148;113.317096,23.165148;113.317144,23.165464;113.317296,23.166128;113.317296,23.166128;113.317387,23.166545;113.317387,23.166545;113.317635,23.167717;113.317808,23.168759;113.317808,23.168759;113.317847,23.16901;113.317847,23.16901;113.317891,23.169349;113.317891,23.169349;113.317947,23.169683;113.317947,23.169683;113.317977,23.169922;113.317977,23.169922;113.318142,23.170946;113.318142,23.170946;113.318251,23.171306;113.318372,23.171597;113.318372,23.171597;113.318394,23.171645;113.318394,23.171645;113.318576,23.17201;113.318576,23.17201;113.318633,23.172118;113.318633,23.172118;113.318746,23.172361;113.318746,23.172361;113.318854,23.172578;113.318854,23.172578;113.31908,23.173038;113.31908,23.173038;113.319479,23.173841;113.319479,23.173841;113.319753,23.174392;113.319753,23.174392;113.319844,23.174596;113.319844,23.174596;113.320043,23.175013;113.320143,23.175256;113.320217,23.175525;113.320217,23.175525;113.320256,23.175716;113.320256,23.175716;113.320286,23.17589;113.320286,23.17589;113.320312,23.176072;113.320312,23.176072;113.320347,23.178077;113.320347,23.178077;113.320356,23.178307;113.320356,23.178307;113.320373,23.178689;113.320373,23.178689;113.320373,23.179036;113.320373,23.179036;113.320386,23.179327;113.320386,23.179327;113.320404,23.179714;113.320456,23.180048;113.320499,23.180221;113.320499,23.180221;113.320595,23.180438;113.320699,23.180629;113.320799,23.180786;113.321003,23.181011;113.321003,23.181011;113.321506,23.181467;113.321506,23.181467;113.321745,23.181675;113.321745,23.181675;113.322231,23.182083;113.322231,23.182083;113.322461,23.182283;113.323003,23.182804;113.323277,23.183034;113.323277,23.183034;113.323385,23.183125;113.323385,23.183125;113.323659,23.183333;113.323659,23.183333;113.324405,23.183963;113.324405,23.183963;113.324562,23.184089;113.324562,23.184089;113.324766,23.184266',\n",
       "      'action': '向右前方行走',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿京溪路向东步行39米向左前方行走',\n",
       "      'orientation': '东',\n",
       "      'road': '京溪路',\n",
       "      'distance': '39',\n",
       "      'duration': '31',\n",
       "      'polyline': '113.324766,23.184266;113.324918,23.184284;113.325148,23.184284',\n",
       "      'action': '向左前方行走',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿广州大道北向北步行1826米直行',\n",
       "      'orientation': '北',\n",
       "      'road': '广州大道北',\n",
       "      'distance': '1826',\n",
       "      'duration': '1461',\n",
       "      'polyline': '113.325148,23.18428;113.325339,23.18444;113.325339,23.18444;113.325512,23.184583;113.325512,23.184583;113.326237,23.185182;113.326237,23.185182;113.326549,23.185451;113.326549,23.185451;113.32671,23.18559;113.32671,23.18559;113.326832,23.185694;113.326832,23.185694;113.327153,23.185985;113.327374,23.186241;113.327374,23.186241;113.327652,23.18668;113.327856,23.187214;113.327856,23.187214;113.327908,23.187509;113.327925,23.187786;113.327921,23.188077;113.327921,23.188077;113.327812,23.189714;113.327812,23.189714;113.327808,23.18977;113.327808,23.18977;113.327791,23.189952;113.327791,23.189952;113.327752,23.190347;113.327752,23.190347;113.327721,23.190738;113.327721,23.190738;113.327656,23.191788;113.327656,23.191788;113.327617,23.192148;113.327617,23.192148;113.327561,23.192409;113.327561,23.192409;113.327539,23.192535;113.327539,23.192535;113.327439,23.192886;113.327439,23.192886;113.327378,23.193125;113.327378,23.193125;113.327274,23.19352;113.327274,23.19352;113.327196,23.19378;113.327196,23.19378;113.326953,23.194692;113.326953,23.194692;113.326862,23.195065;113.326862,23.195065;113.32661,23.195959;113.32661,23.195959;113.326411,23.196693;113.326411,23.196693;113.326363,23.196836;113.326363,23.196836;113.326332,23.196944;113.326332,23.196944;113.326228,23.197335;113.326228,23.197335;113.326189,23.197474;113.326189,23.197474;113.326172,23.197548;113.326172,23.197548;113.32615,23.197617;113.32615,23.197617;113.326098,23.197834;113.326098,23.197834;113.32599,23.19829;113.32599,23.19829;113.325968,23.198494;113.325968,23.198494;113.325955,23.198655;113.325955,23.198655;113.325955,23.198854;113.325981,23.199089;113.326042,23.199436;113.326042,23.199436;113.326085,23.199674;113.326085,23.199674;113.326107,23.199744',\n",
       "      'action': '直行',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿同和路向东北步行2498米左转',\n",
       "      'orientation': '东北',\n",
       "      'road': '同和路',\n",
       "      'distance': '2498',\n",
       "      'duration': '1998',\n",
       "      'polyline': '113.326107,23.199744;113.326237,23.200035;113.326237,23.200035;113.326467,23.200564;113.326467,23.200564;113.326597,23.200855;113.326597,23.200855;113.32674,23.201181;113.32674,23.201181;113.326858,23.201437;113.326858,23.201437;113.327092,23.201962;113.327092,23.201962;113.327717,23.203346;113.327717,23.203346;113.327734,23.20339;113.327734,23.20339;113.327995,23.203967;113.327995,23.203967;113.328069,23.204158;113.328069,23.204158;113.32822,23.20457;113.32822,23.20457;113.328359,23.204983;113.328359,23.204983;113.328442,23.205265;113.328442,23.205265;113.32872,23.206437;113.32872,23.206437;113.328733,23.206502;113.328733,23.206502;113.328945,23.207452;113.328945,23.207452;113.328984,23.207595;113.328984,23.207595;113.329036,23.207925;113.329036,23.207925;113.329106,23.208186;113.329106,23.208186;113.329223,23.208906;113.329223,23.208906;113.329306,23.20974;113.329327,23.210313;113.329327,23.210729;113.329327,23.210729;113.329327,23.210872;113.329327,23.210872;113.329327,23.21112;113.329327,23.21112;113.329327,23.21125;113.329327,23.21125;113.329323,23.211745;113.329323,23.211745;113.329319,23.21263;113.329319,23.21263;113.329319,23.212834;113.329319,23.212834;113.329345,23.213021;113.329345,23.213021;113.329388,23.21332;113.329388,23.21332;113.329497,23.213711;113.329497,23.213711;113.329635,23.214049;113.329635,23.214049;113.329831,23.214414;113.329831,23.214414;113.330069,23.214748;113.330434,23.215143;113.330434,23.215143;113.330647,23.215352;113.331267,23.21589;113.331267,23.21589;113.331641,23.216207;113.331832,23.216341;113.332075,23.216484;113.332326,23.21661;113.332752,23.216762;113.333203,23.216884;113.333503,23.216931;113.333503,23.216931;113.334149,23.216979;113.334149,23.216979;113.335469,23.217066;113.335469,23.217066;113.335812,23.217096;113.336063,23.217144;113.336063,23.217144;113.336363,23.217231;113.336593,23.217331;113.336827,23.217457',\n",
       "      'action': '左转',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '步行16米右转',\n",
       "      'orientation': [],\n",
       "      'road': [],\n",
       "      'distance': '16',\n",
       "      'duration': '13',\n",
       "      'polyline': '113.336827,23.217457;113.336732,23.217582',\n",
       "      'action': '右转',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '1'},\n",
       "     {'instruction': '沿同和路向北步行1310米直行',\n",
       "      'orientation': '北',\n",
       "      'road': '同和路',\n",
       "      'distance': '1310',\n",
       "      'duration': '1048',\n",
       "      'polyline': '113.336727,23.217582;113.336849,23.217648;113.336849,23.217648;113.337118,23.217882;113.337118,23.217882;113.337352,23.218151;113.33747,23.21832;113.337643,23.218685;113.337704,23.218867;113.337843,23.219536;113.337843,23.219536;113.337895,23.220087;113.337895,23.220087;113.337934,23.220365;113.337934,23.220365;113.337986,23.220799;113.337986,23.220799;113.338003,23.220955;113.338003,23.220955;113.338025,23.22112;113.338025,23.22112;113.338043,23.221272;113.338043,23.221272;113.338116,23.221814;113.338116,23.221814;113.338155,23.22217;113.338155,23.22217;113.338164,23.222257;113.338164,23.222257;113.338277,23.22316;113.338277,23.22316;113.338398,23.224006;113.338398,23.224006;113.338568,23.22526;113.33862,23.225846;113.33862,23.225846;113.338628,23.22612;113.338628,23.22612;113.338563,23.226645;113.338503,23.22691;113.338503,23.22691;113.338442,23.227109;113.338442,23.227109;113.338299,23.227487;113.338299,23.227487;113.338008,23.228251;113.337956,23.228477;113.337956,23.228477;113.337938,23.228733;113.337943,23.228876;113.337973,23.229028',\n",
       "      'action': '直行',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿黄庄南路向东北步行1541米直行',\n",
       "      'orientation': '东北',\n",
       "      'road': '黄庄南路',\n",
       "      'distance': '1541',\n",
       "      'duration': '1233',\n",
       "      'polyline': '113.337973,23.229028;113.338025,23.229188;113.338103,23.229349;113.338186,23.229479;113.338286,23.229601;113.338581,23.22987;113.338581,23.22987;113.339141,23.230265;113.339141,23.230265;113.339523,23.230543;113.339523,23.230543;113.339865,23.23082;113.34013,23.231072;113.34013,23.231072;113.34026,23.231224;113.34026,23.231224;113.340473,23.23151;113.340664,23.231806;113.340985,23.232348;113.340985,23.232348;113.341146,23.232582;113.341146,23.232582;113.341354,23.232843;113.341354,23.232843;113.341437,23.232938;113.341437,23.232938;113.341649,23.233207;113.341649,23.233207;113.342053,23.233733;113.342053,23.233733;113.342426,23.23421;113.342426,23.23421;113.342604,23.234453;113.342604,23.234453;113.343116,23.235208;113.343116,23.235208;113.343229,23.235399;113.343229,23.235399;113.343589,23.236024;113.343589,23.236024;113.344015,23.236853;113.344015,23.236853;113.344219,23.237261;113.344219,23.237261;113.344275,23.237365;113.344275,23.237365;113.344505,23.237813;113.344505,23.237813;113.344909,23.238524;113.344909,23.238524;113.345143,23.238902;113.345447,23.239349;113.345447,23.239349;113.345877,23.23997;113.345877,23.23997;113.346272,23.240577',\n",
       "      'action': '直行',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿黄庄北路向东北步行414米直行',\n",
       "      'orientation': '东北',\n",
       "      'road': '黄庄北路',\n",
       "      'distance': '414',\n",
       "      'duration': '331',\n",
       "      'polyline': '113.346272,23.240577;113.346471,23.240911;113.346471,23.240911;113.346845,23.241597;113.347174,23.242231;113.347174,23.242231;113.347622,23.243047;113.347622,23.243047;113.347852,23.243437;113.347852,23.243437;113.347999,23.243676;113.348121,23.243924',\n",
       "      'action': '直行',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿大源南路向北步行38米直行',\n",
       "      'orientation': '北',\n",
       "      'road': '大源南路',\n",
       "      'distance': '38',\n",
       "      'duration': '30',\n",
       "      'polyline': '113.348121,23.243924;113.34822,23.244262',\n",
       "      'action': '直行',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿大源中路向东北步行1125米直行',\n",
       "      'orientation': '东北',\n",
       "      'road': '大源中路',\n",
       "      'distance': '1125',\n",
       "      'duration': '900',\n",
       "      'polyline': '113.34822,23.244262;113.348316,23.244648;113.348316,23.244648;113.348355,23.244818;113.348355,23.244818;113.348403,23.244996;113.348403,23.244996;113.348455,23.2452;113.348637,23.245712;113.348637,23.245712;113.348906,23.246276;113.349089,23.246606;113.349089,23.246606;113.34924,23.246832;113.34924,23.246832;113.349332,23.246962;113.349332,23.246962;113.349622,23.247352;113.349622,23.247352;113.349731,23.247491;113.349731,23.247491;113.350269,23.248147;113.350269,23.248147;113.350326,23.24822;113.350326,23.24822;113.350729,23.248711;113.350729,23.248711;113.350799,23.248798;113.350799,23.248798;113.350838,23.248837;113.350838,23.248837;113.351185,23.249262;113.351185,23.249262;113.351645,23.249826;113.351645,23.249826;113.352279,23.250582;113.352279,23.250582;113.352543,23.250911;113.352543,23.250911;113.352582,23.250959;113.352582,23.250959;113.352643,23.251037;113.352643,23.251037;113.352691,23.251089;113.352691,23.251089;113.352721,23.251128;113.352721,23.251128;113.353003,23.25148;113.353003,23.25148;113.353299,23.25184;113.353299,23.25184;113.353733,23.252405;113.354054,23.252865',\n",
       "      'action': '直行',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿大源北路向北步行2944米直行',\n",
       "      'orientation': '北',\n",
       "      'road': '大源北路',\n",
       "      'distance': '2944',\n",
       "      'duration': '2355',\n",
       "      'polyline': '113.354054,23.252865;113.354575,23.253646;113.354575,23.253646;113.355443,23.254944;113.355443,23.254944;113.355603,23.255182;113.355603,23.255182;113.355621,23.255213;113.355621,23.255213;113.356224,23.256189;113.356224,23.256189;113.356879,23.257196;113.356879,23.257196;113.356923,23.25727;113.356923,23.25727;113.357053,23.257444;113.357053,23.257444;113.357192,23.257639;113.357192,23.257639;113.357457,23.258012;113.357457,23.258012;113.357609,23.258234;113.357609,23.258234;113.35786,23.258589;113.35786,23.258589;113.35819,23.259102;113.35819,23.259102;113.35829,23.259297;113.358429,23.259648;113.358494,23.259952;113.358511,23.260082;113.35852,23.260378;113.35852,23.260378;113.358507,23.260534;113.358455,23.260812;113.358333,23.261185;113.358333,23.261185;113.358034,23.261862;113.357678,23.262626;113.357678,23.262626;113.357422,23.263064;113.357205,23.263364;113.357205,23.263364;113.356836,23.263772;113.356836,23.263772;113.356784,23.263832;113.356784,23.263832;113.356532,23.264063;113.356332,23.264223;113.356332,23.264223;113.356042,23.264431;113.355729,23.264635;113.354874,23.265165;113.354874,23.265165;113.354145,23.265621;113.354145,23.265621;113.353885,23.265786;113.353885,23.265786;113.353433,23.266068;113.353433,23.266068;113.353021,23.266354;113.353021,23.266354;113.352726,23.266606;113.352726,23.266606;113.352587,23.266762;113.352587,23.266762;113.352457,23.266949;113.352287,23.267231;113.352287,23.267231;113.352161,23.267565;113.352101,23.267834;113.35207,23.268108;113.352079,23.268477;113.352079,23.268477;113.352096,23.268563;113.352157,23.268798;113.3523,23.269193;113.3523,23.269193;113.352474,23.269514;113.352474,23.269514;113.352561,23.269648;113.352561,23.269648;113.353238,23.270729;113.353238,23.270729;113.353346,23.270898;113.353346,23.270898;113.354123,23.272105;113.354123,23.272105;113.354375,23.2725;113.354375,23.2725;113.355152,23.273728;113.355152,23.273728;113.355352,23.274041;113.355352,23.274041;113.355786,23.274748;113.355946,23.275082',\n",
       "      'action': '直行',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿上南路向北步行71米直行',\n",
       "      'orientation': '北',\n",
       "      'road': '上南路',\n",
       "      'distance': '71',\n",
       "      'duration': '57',\n",
       "      'polyline': '113.355946,23.275082;113.356055,23.275317;113.356055,23.275317;113.356185,23.275694',\n",
       "      'action': '直行',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿大源北路向北步行24米直行',\n",
       "      'orientation': '北',\n",
       "      'road': '大源北路',\n",
       "      'distance': '24',\n",
       "      'duration': '19',\n",
       "      'polyline': '113.356185,23.275694;113.356237,23.275911',\n",
       "      'action': '直行',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿上南路向东北步行628米向左前方行走',\n",
       "      'orientation': '东北',\n",
       "      'road': '上南路',\n",
       "      'distance': '628',\n",
       "      'duration': '502',\n",
       "      'polyline': '113.356237,23.275911;113.356467,23.276745;113.356467,23.276745;113.356541,23.277036;113.356541,23.277036;113.356793,23.277886;113.356793,23.277886;113.356901,23.278186;113.357122,23.278589;113.357122,23.278589;113.357266,23.278806;113.357266,23.278806;113.357517,23.27911;113.357891,23.279466;113.357891,23.279466;113.358177,23.279705;113.358177,23.279705;113.358251,23.279766;113.358251,23.279766;113.35826,23.279774;113.35826,23.279774;113.358694,23.28013;113.358694,23.28013;113.359106,23.280469;113.359106,23.280469;113.35934,23.28066',\n",
       "      'action': '向左前方行走',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿上南路向北步行521米直行',\n",
       "      'orientation': '北',\n",
       "      'road': '上南路',\n",
       "      'distance': '521',\n",
       "      'duration': '417',\n",
       "      'polyline': '113.35934,23.28066;113.359648,23.281137;113.359648,23.281137;113.359809,23.28145;113.359809,23.28145;113.359844,23.281532;113.359952,23.28184;113.359952,23.28184;113.359974,23.282201;113.359974,23.282457;113.359935,23.282708;113.359865,23.283012;113.359653,23.283733;113.359653,23.283733;113.359375,23.284592;113.359375,23.284592;113.359193,23.285156',\n",
       "      'action': '直行',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿太和南路向北步行526米向右前方行走',\n",
       "      'orientation': '北',\n",
       "      'road': '太和南路',\n",
       "      'distance': '526',\n",
       "      'duration': '421',\n",
       "      'polyline': '113.359188,23.285156;113.359041,23.285616;113.359041,23.285616;113.358919,23.286024;113.358919,23.286024;113.358841,23.28628;113.358841,23.28628;113.35875,23.286576;113.35875,23.286576;113.358685,23.28684;113.358685,23.28684;113.358464,23.287617;113.358464,23.287617;113.358437,23.287726;113.358437,23.287726;113.358416,23.287821;113.358416,23.287821;113.358398,23.28799;113.358403,23.288186;113.358403,23.288186;113.35842,23.288459;113.35842,23.288459;113.358472,23.288845;113.358472,23.288845;113.358511,23.289206;113.358507,23.289531;113.358507,23.289531;113.358464,23.289848',\n",
       "      'action': '向右前方行走',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿太和中路向西北步行632米直行',\n",
       "      'orientation': '西北',\n",
       "      'road': '太和中路',\n",
       "      'distance': '632',\n",
       "      'duration': '506',\n",
       "      'polyline': '113.358459,23.289848;113.358368,23.290135;113.358025,23.290794;113.358025,23.290794;113.357982,23.290881;113.357982,23.290881;113.357812,23.291155;113.357439,23.291688;113.357439,23.291688;113.357218,23.291927;113.357218,23.291927;113.356823,23.292313;113.356823,23.292313;113.356736,23.292387;113.356736,23.292387;113.356441,23.292669;113.356441,23.292669;113.356354,23.292756;113.356354,23.292756;113.356098,23.293012;113.356098,23.293012;113.355951,23.293147;113.355951,23.293147;113.355226,23.29385;113.355226,23.29385;113.355065,23.29401;113.355065,23.29401;113.354861,23.294223;113.354861,23.294223;113.354792,23.294319;113.354792,23.294319;113.354714,23.29441',\n",
       "      'action': '直行',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿太和北路向北步行1227米向右前方行走',\n",
       "      'orientation': '北',\n",
       "      'road': '太和北路',\n",
       "      'distance': '1227',\n",
       "      'duration': '982',\n",
       "      'polyline': '113.354709,23.29441;113.354661,23.294475;113.354661,23.294475;113.354431,23.294792;113.354431,23.294792;113.35434,23.294965;113.35434,23.294965;113.354219,23.295256;113.354219,23.295256;113.354119,23.295599;113.354119,23.295599;113.354097,23.295703;113.354097,23.295703;113.354036,23.295981;113.354036,23.295981;113.353984,23.29625;113.353984,23.29625;113.353958,23.296389;113.353958,23.296389;113.353845,23.29694;113.353845,23.29694;113.353563,23.298381;113.353563,23.298381;113.353442,23.298989;113.353381,23.299214;113.353381,23.299214;113.353168,23.30033;113.353168,23.30033;113.353138,23.300512;113.353138,23.300512;113.353121,23.300599;113.353121,23.300599;113.352917,23.301571;113.352917,23.301571;113.352726,23.302504;113.352726,23.302504;113.352639,23.302982;113.352639,23.302982;113.352595,23.303325;113.352595,23.303325;113.3526,23.303602;113.3526,23.303602;113.352661,23.304019;113.352661,23.304019;113.352765,23.304939;113.352765,23.305109;113.35273,23.305295',\n",
       "      'action': '向右前方行走',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿广从三路向东北步行72米向右前方行走',\n",
       "      'orientation': '东北',\n",
       "      'road': '广从三路',\n",
       "      'distance': '72',\n",
       "      'duration': '58',\n",
       "      'polyline': '113.352726,23.305295;113.352882,23.305569;113.352882,23.305569;113.353056,23.305872',\n",
       "      'action': '向右前方行走',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿广从三路辅路向北步行713米向右前方行走',\n",
       "      'orientation': '北',\n",
       "      'road': '广从三路辅路',\n",
       "      'distance': '713',\n",
       "      'duration': '570',\n",
       "      'polyline': '113.353056,23.305872;113.353194,23.306024;113.353194,23.306024;113.353346,23.306185;113.353346,23.306185;113.353407,23.306259;113.353598,23.306753;113.353598,23.306753;113.353637,23.306845;113.353637,23.306845;113.353872,23.307361;113.354345,23.308594;113.354345,23.308594;113.355056,23.310378;113.355056,23.310378;113.355221,23.310799;113.355221,23.310799;113.35526,23.310911;113.35526,23.310911;113.355339,23.311094;113.355339,23.311094;113.355404,23.311259;113.355404,23.311259;113.355551,23.311632;113.355551,23.311632;113.355573,23.31171;113.355547,23.311884',\n",
       "      'action': '向右前方行走',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿广从三路向北步行1329米左转',\n",
       "      'orientation': '北',\n",
       "      'road': '广从三路',\n",
       "      'distance': '1329',\n",
       "      'duration': '1063',\n",
       "      'polyline': '113.355543,23.311884;113.355625,23.312214;113.356085,23.313464;113.356085,23.313464;113.356549,23.314826;113.356549,23.314826;113.356892,23.31572;113.357292,23.316823;113.357292,23.316823;113.357396,23.317114;113.357396,23.317114;113.357548,23.317535;113.357548,23.317535;113.357635,23.317773;113.357635,23.317773;113.357704,23.317964;113.357704,23.317964;113.357717,23.31803;113.357717,23.31803;113.35793,23.31862;113.35793,23.31862;113.358181,23.319306;113.358181,23.319306;113.35842,23.31997;113.35842,23.31997;113.358481,23.320156;113.358481,23.320156;113.358555,23.320352;113.358555,23.320352;113.358984,23.321484;113.358984,23.321484;113.359184,23.321944;113.359184,23.321944;113.359783,23.32329',\n",
       "      'action': '左转',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿大罗罗窑路向西步行11米右转',\n",
       "      'orientation': '西',\n",
       "      'road': '大罗罗窑路',\n",
       "      'distance': '11',\n",
       "      'duration': '9',\n",
       "      'polyline': '113.359783,23.32329;113.359683,23.323312',\n",
       "      'action': '右转',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿广从公路向北步行433米直行',\n",
       "      'orientation': '北',\n",
       "      'road': '广从公路',\n",
       "      'distance': '433',\n",
       "      'duration': '346',\n",
       "      'polyline': '113.359679,23.323312;113.359605,23.323607;113.359618,23.32372;113.359631,23.323793;113.359792,23.324149;113.359792,23.324149;113.359952,23.324475;113.360395,23.324909;113.360395,23.324909;113.360486,23.325113;113.360486,23.325113;113.360625,23.325412;113.360625,23.325412;113.360768,23.325803;113.360959,23.326428;113.360959,23.326428;113.361072,23.326923',\n",
       "      'action': '直行',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿广从四路向北步行1950米直行',\n",
       "      'orientation': '北',\n",
       "      'road': '广从四路',\n",
       "      'distance': '1950',\n",
       "      'duration': '1560',\n",
       "      'polyline': '113.361072,23.326923;113.361319,23.327921;113.361319,23.327921;113.361393,23.328312;113.361393,23.328312;113.361823,23.330191;113.361823,23.330191;113.361944,23.330707;113.361944,23.330707;113.361984,23.330864;113.361984,23.330864;113.362144,23.331471;113.362144,23.331471;113.362179,23.331602;113.362179,23.331602;113.362287,23.331927;113.362287,23.331927;113.3624,23.332292;113.3624,23.332292;113.362548,23.3327;113.362852,23.333429;113.362852,23.333429;113.363203,23.334223;113.363203,23.334223;113.363498,23.334857;113.363537,23.334918;113.363537,23.334918;113.363898,23.335699;113.363898,23.335699;113.364201,23.336354;113.364201,23.336354;113.36454,23.337135;113.36454,23.337135;113.364813,23.337808;113.364813,23.337808;113.364826,23.337852;113.364826,23.337852;113.365074,23.338498;113.365074,23.338498;113.365417,23.339588;113.365417,23.339588;113.365599,23.340135;113.365599,23.340135;113.365621,23.340221;113.365621,23.340221;113.365842,23.340994;113.365842,23.340994;113.366063,23.341658;113.366063,23.341658;113.366233,23.342209;113.366233,23.342209;113.366554,23.343238;113.366706,23.343806',\n",
       "      'action': '直行',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿广从公路向东北步行4359米',\n",
       "      'orientation': '东北',\n",
       "      'road': '广从公路',\n",
       "      'distance': '4359',\n",
       "      'duration': '3487',\n",
       "      'polyline': '113.366706,23.343806;113.366727,23.343898;113.366727,23.343898;113.366775,23.344067;113.366775,23.344067;113.366827,23.344288;113.366827,23.344288;113.366957,23.344852;113.366957,23.344852;113.367062,23.345321;113.367062,23.345321;113.367148,23.345716;113.367248,23.346332;113.367248,23.346332;113.367331,23.346784;113.367331,23.346784;113.367439,23.347109;113.367543,23.347335;113.367543,23.347335;113.367726,23.347652;113.368108,23.348264;113.368268,23.348563;113.368268,23.348563;113.368789,23.349605;113.368789,23.349605;113.369323,23.350712;113.369323,23.350712;113.369488,23.351055;113.369488,23.351055;113.36987,23.351888;113.370122,23.352387;113.370122,23.352387;113.370291,23.352786;113.370291,23.352786;113.370655,23.353524;113.370655,23.353524;113.370838,23.353915;113.370838,23.353915;113.370985,23.354232;113.370985,23.354232;113.371124,23.354497;113.371124,23.354497;113.371228,23.354696;113.371228,23.354696;113.37135,23.354935;113.371597,23.355343;113.371884,23.355747;113.371884,23.355747;113.372192,23.356098;113.372192,23.356098;113.372496,23.356411;113.372496,23.356411;113.372626,23.356541;113.372626,23.356541;113.37299,23.356914;113.37299,23.356914;113.37474,23.358529;113.375135,23.358885;113.375556,23.35921;113.375942,23.359501;113.377643,23.360616;113.37911,23.361528;113.37911,23.361528;113.380126,23.362075;113.380126,23.362075;113.38053,23.362279;113.38053,23.362279;113.381063,23.362548;113.381063,23.362548;113.381437,23.36273;113.381437,23.36273;113.381497,23.36276;113.381497,23.36276;113.381645,23.362834;113.381645,23.362834;113.38197,23.362995;113.38197,23.362995;113.382183,23.363095;113.382183,23.363095;113.382674,23.363342;113.382674,23.363342;113.383056,23.363529;113.383407,23.363724;113.383407,23.363724;113.383863,23.363941;113.383863,23.363941;113.384757,23.364366;113.384757,23.364366;113.385078,23.364527;113.385078,23.364527;113.385412,23.364696;113.385412,23.364696;113.385664,23.364818;113.385664,23.364818;113.387799,23.365864;113.387799,23.365864;113.388646,23.36628;113.388646,23.36628;113.390213,23.367066;113.390213,23.367066;113.390495,23.367227;113.390495,23.367227;113.391042,23.367561;113.391042,23.367561;113.391536,23.367895;113.391536,23.367895;113.392057,23.368294;113.392951,23.369045;113.392951,23.369045;113.393507,23.36951;113.393507,23.36951;113.393971,23.369913;113.393971,23.369913;113.394149,23.370065;113.394149,23.370065;113.394857,23.370668;113.394857,23.370668;113.39523,23.371011',\n",
       "      'action': [],\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿广从公路辅路向东北步行987米直行',\n",
       "      'orientation': '东北',\n",
       "      'road': '广从公路辅路',\n",
       "      'distance': '987',\n",
       "      'duration': '790',\n",
       "      'polyline': '113.39523,23.371011;113.395391,23.371246;113.395443,23.371302;113.396385,23.372144;113.396385,23.372144;113.397122,23.372791;113.397122,23.372791;113.397491,23.373121;113.397491,23.373121;113.398099,23.373668;113.398099,23.373668;113.39816,23.373724;113.39816,23.373724;113.398338,23.373872;113.398338,23.373872;113.398832,23.374301;113.398832,23.374301;113.399345,23.374718;113.399345,23.374718;113.400577,23.375755;113.400577,23.375755;113.400595,23.375773;113.400595,23.375773;113.400738,23.375894;113.400738,23.375894;113.401029,23.376137;113.401029,23.376137;113.401997,23.376997;113.402127,23.377088;113.402309,23.377127',\n",
       "      'action': '直行',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿广从公路向东北步行539米',\n",
       "      'orientation': '东北',\n",
       "      'road': '广从公路',\n",
       "      'distance': '539',\n",
       "      'duration': '431',\n",
       "      'polyline': '113.402309,23.377127;113.403082,23.377795;113.403312,23.377973;113.403312,23.377973;113.403602,23.378168;113.403602,23.378168;113.403737,23.37826;113.403737,23.37826;113.404119,23.378524;113.404592,23.378811;113.404592,23.378811;113.404805,23.378932;113.404805,23.378932;113.405204,23.379149;113.405204,23.379149;113.405872,23.379488;113.405872,23.379488;113.406684,23.379852',\n",
       "      'action': [],\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿广从公路辅路向东步行906米直行',\n",
       "      'orientation': '东',\n",
       "      'road': '广从公路辅路',\n",
       "      'distance': '906',\n",
       "      'duration': '725',\n",
       "      'polyline': '113.406684,23.379852;113.406827,23.379957;113.406997,23.380004;113.406997,23.380004;113.40855,23.38046;113.410139,23.380898;113.410139,23.380898;113.410343,23.380959;113.410343,23.380959;113.410994,23.381141;113.410994,23.381141;113.411359,23.381233;113.411359,23.381233;113.414792,23.382127;113.414792,23.382127;113.414909,23.382153;113.414909,23.382153;113.41503,23.382179;113.415195,23.382174',\n",
       "      'action': '直行',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿广从公路向东步行2042米向左前方行走',\n",
       "      'orientation': '东',\n",
       "      'road': '广从公路',\n",
       "      'distance': '2042',\n",
       "      'duration': '1634',\n",
       "      'polyline': '113.415195,23.38217;113.415968,23.382378;113.415968,23.382378;113.416463,23.382513;113.416463,23.382513;113.416706,23.382578;113.416706,23.382578;113.416984,23.382648;113.416984,23.382648;113.41796,23.382917;113.41796,23.382917;113.418103,23.38296;113.418103,23.38296;113.418494,23.383064;113.418494,23.383064;113.419661,23.383377;113.419661,23.383377;113.420577,23.383628;113.420577,23.383628;113.421589,23.383902;113.421589,23.383902;113.4223,23.384097;113.4223,23.384097;113.422713,23.384197;113.422713,23.384197;113.423038,23.38428;113.423038,23.38428;113.423164,23.384306;113.423164,23.384306;113.423919,23.384449;113.423919,23.384449;113.424353,23.384505;113.424353,23.384505;113.425148,23.384553;113.425148,23.384553;113.425412,23.384562;113.425412,23.384562;113.425977,23.384579;113.425977,23.384579;113.426237,23.384583;113.426237,23.384583;113.426389,23.384583;113.426389,23.384583;113.42674,23.384596;113.42674,23.384596;113.42691,23.384601;113.42691,23.384601;113.427075,23.384601;113.427075,23.384601;113.427344,23.384605;113.427344,23.384605;113.427639,23.384609;113.427639,23.384609;113.428585,23.384635;113.428585,23.384635;113.428893,23.38464;113.428893,23.38464;113.42951,23.384653;113.42951,23.384653;113.430265,23.384666;113.430265,23.384666;113.430738,23.384674;113.430738,23.384674;113.431272,23.384687;113.431272,23.384687;113.432014,23.384709;113.432014,23.384709;113.432296,23.384714;113.432296,23.384714;113.432678,23.384727;113.432678,23.384727;113.432964,23.38474;113.432964,23.38474;113.433468,23.384805;113.433468,23.384805;113.433715,23.384848;113.433715,23.384848;113.434058,23.384939;113.434475,23.385074;113.434475,23.385074;113.434926,23.385256',\n",
       "      'action': '向左前方行走',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿广从公路辅路向东北步行942米直行',\n",
       "      'orientation': '东北',\n",
       "      'road': '广从公路辅路',\n",
       "      'distance': '942',\n",
       "      'duration': '754',\n",
       "      'polyline': '113.434926,23.385256;113.435104,23.385434;113.43559,23.385686;113.43559,23.385686;113.436124,23.385959;113.437687,23.38671;113.437687,23.38671;113.438659,23.387183;113.438659,23.387183;113.439353,23.38753;113.439353,23.38753;113.44013,23.387895;113.44013,23.387895;113.440894,23.388264;113.440894,23.388264;113.44194,23.388737;113.442435,23.388898;113.442769,23.388984;113.442769,23.388984;113.44316,23.389045',\n",
       "      'action': '直行',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿广从公路向东北步行3675米直行',\n",
       "      'orientation': '东北',\n",
       "      'road': '广从公路',\n",
       "      'distance': '3675',\n",
       "      'duration': '2940',\n",
       "      'polyline': '113.44316,23.389045;113.445395,23.38974;113.44605,23.38997;113.44605,23.38997;113.446545,23.390182;113.446545,23.390182;113.446875,23.390339;113.447218,23.39053;113.447865,23.390946;113.447865,23.390946;113.448264,23.391259;113.448589,23.391549;113.448589,23.391549;113.448889,23.391836;113.449201,23.392183;113.449436,23.392483;113.449744,23.392921;113.449744,23.392921;113.450226,23.393711;113.450226,23.393711;113.450412,23.394032;113.450412,23.394032;113.450894,23.394831;113.450894,23.394831;113.451137,23.395239;113.451137,23.395239;113.452023,23.396736;113.452023,23.396736;113.452435,23.397448;113.452435,23.397448;113.452604,23.397739;113.452604,23.397739;113.452687,23.397878;113.452687,23.397878;113.452747,23.397969;113.452747,23.397969;113.453351,23.398915;113.453351,23.398915;113.454045,23.400004;113.454045,23.400004;113.454197,23.400204;113.454197,23.400204;113.454549,23.400699;113.454549,23.400699;113.454887,23.401159;113.454887,23.401159;113.455182,23.401558;113.455182,23.401558;113.455221,23.40161;113.455221,23.40161;113.455391,23.401832;113.455391,23.401832;113.455582,23.402092;113.455582,23.402092;113.455977,23.402648;113.455977,23.402648;113.456519,23.403338;113.456519,23.403338;113.456923,23.403859;113.456923,23.403859;113.457031,23.403997;113.457031,23.403997;113.457287,23.404332;113.457287,23.404332;113.457587,23.404705;113.457587,23.404705;113.458585,23.405907;113.458585,23.405907;113.459896,23.4076;113.459896,23.4076;113.459983,23.4077;113.459983,23.4077;113.460651,23.408529;113.460651,23.408529;113.460812,23.408641;113.461463,23.409193;113.461463,23.409193;113.461615,23.409319;113.461615,23.409319;113.461858,23.409523;113.461858,23.409523;113.462882,23.410373;113.462882,23.410373;113.463416,23.410816;113.463416,23.410816;113.46375,23.411107;113.46375,23.411107;113.464054,23.41135;113.464054,23.41135;113.464497,23.411693;113.464497,23.411693;113.464978,23.412092;113.464978,23.412092;113.465573,23.412613;113.465573,23.412613;113.466254,23.413177;113.466254,23.413177;113.466558,23.413433',\n",
       "      'action': '直行',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿广从公路辅路向东北步行462米直行',\n",
       "      'orientation': '东北',\n",
       "      'road': '广从公路辅路',\n",
       "      'distance': '462',\n",
       "      'duration': '370',\n",
       "      'polyline': '113.466558,23.413433;113.467092,23.413967;113.467092,23.413967;113.467253,23.414123;113.467253,23.414123;113.468199,23.414939;113.468199,23.414939;113.469145,23.41576;113.469145,23.41576;113.469549,23.416081;113.469549,23.416081;113.469848,23.416328',\n",
       "      'action': '直行',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿广从十路辅路向东北步行408米直行',\n",
       "      'orientation': '东北',\n",
       "      'road': '广从十路辅路',\n",
       "      'distance': '408',\n",
       "      'duration': '326',\n",
       "      'polyline': '113.469848,23.416328;113.470191,23.416597;113.470304,23.416701;113.470304,23.416701;113.470503,23.416853;113.470503,23.416853;113.470725,23.417062;113.470725,23.417062;113.472509,23.41852;113.472882,23.418737',\n",
       "      'action': '直行',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿广从十路向东北步行774米直行',\n",
       "      'orientation': '东北',\n",
       "      'road': '广从十路',\n",
       "      'distance': '774',\n",
       "      'duration': '619',\n",
       "      'polyline': '113.472882,23.418737;113.472973,23.418828;113.472973,23.418828;113.473251,23.419128;113.473251,23.419128;113.473286,23.419162;113.473286,23.419162;113.473416,23.419314;113.473416,23.419314;113.473633,23.419575;113.473633,23.419575;113.473737,23.419696;113.473737,23.419696;113.473945,23.419952;113.473945,23.419952;113.47428,23.420521;113.47428,23.420521;113.474614,23.421085;113.474614,23.421085;113.474822,23.421415;113.474822,23.421415;113.474965,23.421662;113.474965,23.421662;113.475317,23.422244;113.475317,23.422244;113.475677,23.422839;113.475677,23.422839;113.47582,23.423086;113.47582,23.423086;113.476172,23.423668;113.476172,23.423668;113.476341,23.423945;113.476341,23.423945;113.476827,23.424757',\n",
       "      'action': '直行',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿广从南路向东北步行195米',\n",
       "      'orientation': '东北',\n",
       "      'road': '广从南路',\n",
       "      'distance': '195',\n",
       "      'duration': '156',\n",
       "      'polyline': '113.476827,23.424757;113.477591,23.426033;113.477691,23.426254;113.477691,23.426254;113.477721,23.426324',\n",
       "      'action': [],\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿广从南路辅路向东北步行471米向左前方行走',\n",
       "      'orientation': '东北',\n",
       "      'road': '广从南路辅路',\n",
       "      'distance': '471',\n",
       "      'duration': '377',\n",
       "      'polyline': '113.477721,23.426324;113.477947,23.42697;113.477947,23.42697;113.478095,23.427196;113.478477,23.427839;113.478477,23.427839;113.47878,23.428381;113.47878,23.428381;113.479362,23.429401;113.479796,23.430135',\n",
       "      'action': '向左前方行走',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿广从南路辅路步行46米向右后方行走',\n",
       "      'orientation': [],\n",
       "      'road': '广从南路辅路',\n",
       "      'distance': '46',\n",
       "      'duration': '37',\n",
       "      'polyline': '113.479796,23.430135;113.479839,23.430304;113.479839,23.430304;113.479831,23.430443;113.479748,23.430516',\n",
       "      'action': '向右后方行走',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿太平西路向东步行26米左转',\n",
       "      'orientation': '东',\n",
       "      'road': '太平西路',\n",
       "      'distance': '26',\n",
       "      'duration': '21',\n",
       "      'polyline': '113.479744,23.430516;113.479996,23.430456',\n",
       "      'action': '左转',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿广从南路辅路向东北步行484米直行',\n",
       "      'orientation': '东北',\n",
       "      'road': '广从南路辅路',\n",
       "      'distance': '484',\n",
       "      'duration': '387',\n",
       "      'polyline': '113.479996,23.430451;113.480048,23.430534;113.480048,23.430534;113.480312,23.430911;113.480312,23.430911;113.48043,23.431055;113.48043,23.431055;113.48056,23.431207;113.48056,23.431207;113.480681,23.431363;113.480681,23.431363;113.481359,23.431975;113.481359,23.431975;113.481458,23.432053;113.481458,23.432053;113.482105,23.432609;113.482105,23.432609;113.482635,23.433047;113.482635,23.433047;113.482917,23.433251;113.483112,23.433355;113.483112,23.433355;113.48339,23.433481',\n",
       "      'action': '直行',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿广从南路向东北步行1230米向左前方行走',\n",
       "      'orientation': '东北',\n",
       "      'road': '广从南路',\n",
       "      'distance': '1230',\n",
       "      'duration': '984',\n",
       "      'polyline': '113.48339,23.433481;113.483442,23.43352;113.483442,23.43352;113.483533,23.433585;113.483533,23.433585;113.483802,23.433811;113.483802,23.433811;113.484028,23.434015;113.484028,23.434015;113.485143,23.435026;113.485143,23.435026;113.485412,23.435278;113.485412,23.435278;113.485495,23.435369;113.485495,23.435369;113.485725,23.435577;113.485725,23.435577;113.486011,23.435846;113.486011,23.435846;113.487005,23.436814;113.487005,23.436814;113.487491,23.437274;113.487491,23.437274;113.48776,23.437552;113.48776,23.437552;113.48809,23.437938;113.488446,23.438437;113.488737,23.438963;113.488889,23.439297;113.488889,23.439297;113.489089,23.439796;113.489232,23.440295;113.489232,23.440295;113.48947,23.441363;113.48947,23.441363;113.489575,23.441819;113.489575,23.441819;113.489735,23.442595',\n",
       "      'action': '向左前方行走',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿广从南路辅路向北步行19米向右前方行走',\n",
       "      'orientation': '北',\n",
       "      'road': '广从南路辅路',\n",
       "      'distance': '19',\n",
       "      'duration': '15',\n",
       "      'polyline': '113.489735,23.442595;113.489688,23.442769',\n",
       "      'action': '向右前方行走',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿广从南路辅路向北步行1228米直行',\n",
       "      'orientation': '北',\n",
       "      'road': '广从南路辅路',\n",
       "      'distance': '1228',\n",
       "      'duration': '982',\n",
       "      'polyline': '113.489683,23.442769;113.489753,23.443069;113.489753,23.443069;113.489926,23.443872;113.489926,23.443872;113.490148,23.444957;113.490148,23.444957;113.490399,23.446089;113.490399,23.446089;113.490438,23.446228;113.490438,23.446228;113.49049,23.446493;113.49049,23.446493;113.490629,23.447044;113.490629,23.447044;113.49066,23.447192;113.49066,23.447192;113.490742,23.447569;113.490742,23.447569;113.491141,23.449397;113.491141,23.449397;113.491293,23.450122;113.491293,23.450122;113.491324,23.450252;113.491324,23.450252;113.491484,23.450951;113.491484,23.450951;113.491589,23.451393;113.491589,23.451393;113.491736,23.452031;113.491736,23.452031;113.491758,23.45214;113.491758,23.45214;113.491858,23.452587;113.491858,23.452587;113.491918,23.452878;113.492079,23.45355;113.492188,23.453676',\n",
       "      'action': '直行',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿广从南路向东北步行3128米向左前方行走',\n",
       "      'orientation': '东北',\n",
       "      'road': '广从南路',\n",
       "      'distance': '3128',\n",
       "      'duration': '2502',\n",
       "      'polyline': '113.492188,23.453676;113.492491,23.454887;113.492691,23.455508;113.493003,23.456254;113.493199,23.456649;113.493407,23.457023;113.493407,23.457023;113.49355,23.457257;113.49355,23.457257;113.493711,23.457491;113.493711,23.457491;113.494015,23.457917;113.494015,23.457917;113.494106,23.45803;113.494106,23.45803;113.494358,23.458342;113.494358,23.458342;113.494878,23.458958;113.494878,23.458958;113.495239,23.459379;113.495239,23.459379;113.496024,23.46033;113.496024,23.46033;113.496146,23.460482;113.496146,23.460482;113.496298,23.460686;113.496298,23.460686;113.496549,23.461063;113.496719,23.461372;113.497539,23.463073;113.497539,23.463073;113.498433,23.464961;113.498433,23.464961;113.498472,23.465052;113.498472,23.465052;113.499089,23.466337;113.499089,23.466337;113.499327,23.466775;113.49954,23.467092;113.49954,23.467092;113.499809,23.467409;113.500126,23.467743;113.500126,23.467743;113.500417,23.46799;113.500846,23.468286;113.501072,23.46842;113.501845,23.468828;113.501845,23.468828;113.502769,23.46931;113.502769,23.46931;113.503498,23.469692;113.503498,23.469692;113.504913,23.470412;113.504913,23.470412;113.50533,23.470638;113.50533,23.470638;113.506819,23.471415;113.506819,23.471415;113.507756,23.471897;113.507756,23.471897;113.507843,23.47194;113.507843,23.47194;113.508199,23.472118;113.509518,23.472678;113.51026,23.472938;113.51128,23.47326;113.51128,23.47326;113.511944,23.473459',\n",
       "      'action': '向左前方行走',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿广从南路辅路向东步行755米直行',\n",
       "      'orientation': '东',\n",
       "      'road': '广从南路辅路',\n",
       "      'distance': '755',\n",
       "      'duration': '604',\n",
       "      'polyline': '113.511944,23.473459;113.512157,23.47365;113.513464,23.474041;113.513464,23.474041;113.515052,23.47454;113.515052,23.47454;113.515317,23.474622;113.515317,23.474622;113.515378,23.474644;113.515378,23.474644;113.515547,23.474696;113.515547,23.474696;113.515729,23.474757;113.515729,23.474757;113.516081,23.474861;113.516081,23.474861;113.517118,23.475191;113.517118,23.475191;113.517318,23.475247;113.517318,23.475247;113.517491,23.475308;113.517491,23.475308;113.517543,23.475326;113.517543,23.475326;113.518012,23.475473;113.518012,23.475473;113.518585,23.475647;113.51895,23.475668',\n",
       "      'action': '直行',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿广从南路向东北步行885米向左前方行走',\n",
       "      'orientation': '东北',\n",
       "      'road': '广从南路',\n",
       "      'distance': '885',\n",
       "      'duration': '708',\n",
       "      'polyline': '113.51895,23.475668;113.519431,23.475803;113.519818,23.475946;113.520412,23.476224;113.520412,23.476224;113.521033,23.476558;113.521033,23.476558;113.522474,23.477352;113.522474,23.477352;113.523451,23.477895;113.523793,23.478099;113.524062,23.478281;113.524062,23.478281;113.524358,23.478516;113.524609,23.478746;113.524948,23.479089;113.525898,23.480239;113.525898,23.480239;113.525907,23.480243',\n",
       "      'action': '向左前方行走',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿广从南路向东北步行268米向左前方行走',\n",
       "      'orientation': '东北',\n",
       "      'road': '广从南路',\n",
       "      'distance': '268',\n",
       "      'duration': '214',\n",
       "      'polyline': '113.525907,23.480243;113.526237,23.480686;113.526237,23.480686;113.527418,23.482231',\n",
       "      'action': '向左前方行走',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿广从南路辅路向东北步行343米直行',\n",
       "      'orientation': '东北',\n",
       "      'road': '广从南路辅路',\n",
       "      'distance': '343',\n",
       "      'duration': '274',\n",
       "      'polyline': '113.527418,23.482231;113.527457,23.482465;113.5277,23.482782;113.5277,23.482782;113.528051,23.48322;113.528051,23.48322;113.528364,23.483598;113.529049,23.484488;113.529049,23.484488;113.529297,23.484796',\n",
       "      'action': '直行',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿广从北路辅路向东北步行369米直行',\n",
       "      'orientation': '东北',\n",
       "      'road': '广从北路辅路',\n",
       "      'distance': '369',\n",
       "      'duration': '295',\n",
       "      'polyline': '113.529297,23.484796;113.529358,23.484883;113.529358,23.484883;113.52954,23.485126;113.52954,23.485126;113.53056,23.486411;113.53099,23.486884;113.53099,23.486884;113.531393,23.487266;113.531597,23.487352',\n",
       "      'action': '直行',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿广从北路向东北步行337米直行',\n",
       "      'orientation': '东北',\n",
       "      'road': '广从北路',\n",
       "      'distance': '337',\n",
       "      'duration': '270',\n",
       "      'polyline': '113.531597,23.487352;113.532088,23.48773;113.532622,23.488082;113.532622,23.488082;113.533155,23.488377;113.533155,23.488377;113.533659,23.488624;113.533659,23.488624;113.534431,23.488928',\n",
       "      'action': '直行',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿广从公路向东北步行8255米向左前方行走',\n",
       "      'orientation': '东北',\n",
       "      'road': '广从公路',\n",
       "      'distance': '8255',\n",
       "      'duration': '6604',\n",
       "      'polyline': '113.534431,23.488928;113.534826,23.489058;113.535308,23.489184;113.535308,23.489184;113.535503,23.489236;113.535503,23.489236;113.536115,23.489397;113.536115,23.489397;113.536536,23.489501;113.536536,23.489501;113.538915,23.490104;113.538915,23.490104;113.541241,23.490694;113.541241,23.490694;113.541302,23.490716;113.541302,23.490716;113.541936,23.490929;113.542335,23.491115;113.542943,23.491528;113.542943,23.491528;113.543585,23.491992;113.543585,23.491992;113.54441,23.492569;113.544913,23.492973;113.545299,23.493316;113.545299,23.493316;113.54546,23.493459;113.54546,23.493459;113.545486,23.493481;113.545486,23.493481;113.545608,23.493589;113.546293,23.493976;113.546293,23.493976;113.546797,23.494219;113.546797,23.494219;113.547361,23.494484;113.548637,23.495174;113.548637,23.495174;113.548793,23.495256;113.548793,23.495256;113.550373,23.496115;113.550373,23.496115;113.552687,23.497352;113.552687,23.497352;113.553741,23.497917;113.553741,23.497917;113.554115,23.498129;113.554115,23.498129;113.554531,23.498377;113.554531,23.498377;113.554874,23.498594;113.554874,23.498594;113.555226,23.498859;113.555226,23.498859;113.555473,23.499054;113.555473,23.499054;113.556372,23.499826;113.556693,23.500065;113.557148,23.50036;113.557348,23.500469;113.557348,23.500469;113.557799,23.500681;113.557799,23.500681;113.558216,23.500842;113.558216,23.500842;113.55908,23.501168;113.55908,23.501168;113.559462,23.501319;113.559462,23.501319;113.559787,23.501445;113.559787,23.501445;113.560039,23.501536;113.560039,23.501536;113.562313,23.502405;113.562313,23.502405;113.563537,23.502869;113.563537,23.502869;113.56503,23.503446;113.56503,23.503446;113.565686,23.503702;113.566128,23.503915;113.566589,23.504201;113.566892,23.504431;113.566892,23.504431;113.567214,23.504727;113.567526,23.505069;113.567526,23.505069;113.56786,23.505538;113.56786,23.505538;113.568494,23.506567;113.568494,23.506567;113.568737,23.506962;113.568737,23.506962;113.569336,23.50793;113.569336,23.50793;113.569479,23.508186;113.569479,23.508186;113.570234,23.509414;113.570417,23.50967;113.570655,23.50997;113.57092,23.510256;113.57092,23.510256;113.571224,23.510564;113.571476,23.510768;113.571476,23.510768;113.571545,23.51082;113.571545,23.51082;113.5724,23.511402;113.5724,23.511402;113.573025,23.511819;113.573958,23.512361;113.573958,23.512361;113.574431,23.512591;113.574431,23.512591;113.575382,23.512999;113.576003,23.513229;113.576003,23.513229;113.576706,23.513477;113.576706,23.513477;113.57701,23.513585;113.57701,23.513585;113.578581,23.514136;113.579102,23.514349;113.579102,23.514349;113.579327,23.514462;113.579679,23.514661;113.580052,23.514909;113.580052,23.514909;113.580686,23.515408;113.580686,23.515408;113.580864,23.515547;113.580864,23.515547;113.581237,23.515864;113.581237,23.515864;113.581745,23.516285;113.581745,23.516285;113.581871,23.516389;113.581871,23.516389;113.582122,23.516615;113.582122,23.516615;113.582969,23.517309;113.582969,23.517309;113.58424,23.518368;113.58424,23.518368;113.584531,23.518615;113.584531,23.518615;113.58467,23.518728;113.58467,23.518728;113.585638,23.519523;113.585638,23.519523;113.586029,23.519848;113.586424,23.520169;113.586424,23.520169;113.586806,23.520477;113.587287,23.520842;113.587552,23.52102;113.588103,23.521337;113.588103,23.521337;113.588537,23.521549;113.589162,23.521806;113.589162,23.521806;113.589262,23.52184;113.589262,23.52184;113.589575,23.521944;113.589575,23.521944;113.590048,23.52207;113.590048,23.52207;113.590534,23.52217;113.590534,23.52217;113.591102,23.522257;113.59168,23.5223;113.59168,23.5223;113.591771,23.522305;113.591771,23.522305;113.591862,23.522318;113.591862,23.522318;113.593581,23.522452;113.593581,23.522452;113.593876,23.522478;113.593876,23.522478;113.594809,23.522552;113.594809,23.522552;113.595382,23.522591;113.595382,23.522591;113.595955,23.52263;113.595955,23.52263;113.597174,23.52273;113.597174,23.52273;113.597973,23.522795;113.597973,23.522795;113.599119,23.522886;113.599119,23.522886;113.599701,23.522947;113.599957,23.523008;113.600326,23.523134;113.600629,23.523281;113.600629,23.523281;113.600881,23.523451;113.601185,23.523711;113.601185,23.523711;113.601332,23.523872;113.601597,23.524214;113.601597,23.524214;113.60178,23.524453;113.60178,23.524453;113.60178,23.524718;113.60178,23.524718;113.601771,23.524865;113.601771,23.524865;113.602148,23.524939;113.602148,23.524939;113.60227,23.525104',\n",
       "      'action': '向左前方行走',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '步行31米右转',\n",
       "      'orientation': [],\n",
       "      'road': [],\n",
       "      'distance': '31',\n",
       "      'duration': '25',\n",
       "      'polyline': '113.60227,23.525104;113.602205,23.525386',\n",
       "      'action': '右转',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '1'},\n",
       "     {'instruction': '沿从城大道步行52米直行',\n",
       "      'orientation': [],\n",
       "      'road': '从城大道',\n",
       "      'distance': '52',\n",
       "      'duration': '42',\n",
       "      'polyline': '113.602201,23.525386;113.60224,23.525395;113.60224,23.525395;113.602444,23.525486;113.602652,23.525616',\n",
       "      'action': '直行',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿环市东路向东北步行20米向左前方行走',\n",
       "      'orientation': '东北',\n",
       "      'road': '环市东路',\n",
       "      'distance': '20',\n",
       "      'duration': '16',\n",
       "      'polyline': '113.602652,23.525616;113.602765,23.525773',\n",
       "      'action': '向左前方行走',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿环市东路步行59米右转',\n",
       "      'orientation': [],\n",
       "      'road': '环市东路',\n",
       "      'distance': '59',\n",
       "      'duration': '47',\n",
       "      'polyline': '113.602765,23.525773;113.602882,23.526137;113.602904,23.526289',\n",
       "      'action': '右转',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '步行24米左转',\n",
       "      'orientation': [],\n",
       "      'road': [],\n",
       "      'distance': '24',\n",
       "      'duration': '19',\n",
       "      'polyline': '113.602904,23.526289;113.603138,23.526233',\n",
       "      'action': '左转',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '1'},\n",
       "     {'instruction': '沿环市东路向东北步行12米向左前方行走',\n",
       "      'orientation': '东北',\n",
       "      'road': '环市东路',\n",
       "      'distance': '12',\n",
       "      'duration': '10',\n",
       "      'polyline': '113.603138,23.526228;113.603216,23.526306',\n",
       "      'action': '向左前方行走',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '步行37米右转',\n",
       "      'orientation': [],\n",
       "      'road': [],\n",
       "      'distance': '37',\n",
       "      'duration': '30',\n",
       "      'polyline': '113.603216,23.526306;113.603212,23.52648;113.603212,23.52648;113.603199,23.526641',\n",
       "      'action': '右转',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '1'},\n",
       "     {'instruction': '沿河东南路步行36米向左前方行走',\n",
       "      'orientation': [],\n",
       "      'road': '河东南路',\n",
       "      'distance': '36',\n",
       "      'duration': '29',\n",
       "      'polyline': '113.603194,23.526632;113.603286,23.526632;113.603286,23.526632;113.603559,23.526632',\n",
       "      'action': '向左前方行走',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿环市东路向东北步行1013米右转',\n",
       "      'orientation': '东北',\n",
       "      'road': '环市东路',\n",
       "      'distance': '1013',\n",
       "      'duration': '810',\n",
       "      'polyline': '113.603559,23.526632;113.604384,23.527326;113.604384,23.527326;113.604948,23.527782;113.604948,23.527782;113.605894,23.528576;113.605894,23.528576;113.606124,23.528776;113.60638,23.529028;113.60638,23.529028;113.60648,23.529141;113.60648,23.529141;113.606641,23.52934;113.606862,23.529683;113.606862,23.529683;113.606984,23.529926;113.606984,23.529926;113.607244,23.530547;113.607244,23.530547;113.607678,23.531623;113.607678,23.531623;113.607795,23.53191;113.607795,23.53191;113.608008,23.532444;113.608008,23.532444;113.608238,23.532986;113.608238,23.532986;113.608733,23.534223',\n",
       "      'action': '右转',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿从樟一路向东步行14米左转',\n",
       "      'orientation': '东',\n",
       "      'road': '从樟一路',\n",
       "      'distance': '14',\n",
       "      'duration': '11',\n",
       "      'polyline': '113.608733,23.534223;113.608867,23.534223',\n",
       "      'action': '左转',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿环市东路向北步行3209米右转',\n",
       "      'orientation': '北',\n",
       "      'road': '环市东路',\n",
       "      'distance': '3209',\n",
       "      'duration': '2567',\n",
       "      'polyline': '113.608867,23.534219;113.609275,23.535247;113.609449,23.535911;113.609549,23.536532;113.609549,23.536532;113.609601,23.537161;113.609601,23.53763;113.609601,23.53763;113.609562,23.538303;113.609562,23.538303;113.609501,23.538681;113.609301,23.539657;113.609301,23.539657;113.609102,23.54056;113.609102,23.54056;113.608911,23.54148;113.608911,23.54148;113.608537,23.543194;113.608537,23.543194;113.608494,23.543416;113.608494,23.543416;113.608364,23.544049;113.608364,23.544049;113.608338,23.544175;113.608338,23.544175;113.608277,23.544497;113.608216,23.545056;113.60822,23.54566;113.60826,23.54615;113.60826,23.54615;113.608329,23.546966;113.608329,23.546966;113.608359,23.547261;113.608359,23.547261;113.608411,23.547522;113.608533,23.547917;113.608533,23.547917;113.608702,23.548242;113.608967,23.548637;113.608967,23.548637;113.609067,23.548741;113.609067,23.548741;113.60951,23.549158;113.60951,23.549158;113.610061,23.549605;113.610061,23.549605;113.610547,23.549996;113.610547,23.549996;113.611241,23.550573;113.611471,23.550807;113.611602,23.550964;113.611884,23.55135;113.612066,23.551654;113.612188,23.551944;113.612188,23.551944;113.612339,23.552335;113.612339,23.552335;113.612652,23.553177;113.612652,23.553177;113.612678,23.553247;113.612678,23.553247;113.612752,23.553438;113.612752,23.553438;113.612773,23.553511;113.612773,23.553511;113.613134,23.554414;113.613424,23.554922;113.613424,23.554922;113.613624,23.555213;113.613624,23.555213;113.613828,23.555486;113.613828,23.555486;113.614089,23.555786;113.614089,23.555786;113.615208,23.556901;113.615208,23.556901;113.61579,23.55747;113.61579,23.55747;113.617622,23.559266;113.617622,23.559266;113.618247,23.559887',\n",
       "      'action': '右转',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿灌村路向东步行781米直行',\n",
       "      'orientation': '东',\n",
       "      'road': '灌村路',\n",
       "      'distance': '781',\n",
       "      'duration': '625',\n",
       "      'polyline': '113.618247,23.559887;113.618351,23.559844;113.61855,23.5598;113.619184,23.559731;113.619184,23.559731;113.619423,23.55974;113.619423,23.55974;113.619575,23.559757;113.620221,23.559922;113.62151,23.560221;113.621771,23.560312;113.621931,23.560417;113.622044,23.560521;113.622656,23.561181;113.622999,23.561589;113.623212,23.561766;113.623485,23.561905;113.624427,23.562179;113.624983,23.562361',\n",
       "      'action': '直行',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿政通路向东北步行2161米直行',\n",
       "      'orientation': '东北',\n",
       "      'road': '政通路',\n",
       "      'distance': '2161',\n",
       "      'duration': '1729',\n",
       "      'polyline': '113.624983,23.562361;113.625959,23.562678;113.62625,23.562799;113.626571,23.562999;113.627409,23.563646;113.627569,23.563811;113.627661,23.563945;113.628056,23.564588;113.628255,23.565022;113.628355,23.565169;113.629058,23.565794;113.629592,23.566454;113.630109,23.566879;113.630109,23.566879;113.630451,23.567153;113.630451,23.567153;113.630764,23.567383;113.630764,23.567383;113.630942,23.567522;113.631085,23.567652;113.631215,23.56783;113.631276,23.567943;113.631276,23.567943;113.631437,23.568333;113.631437,23.568333;113.631697,23.568993;113.631797,23.569154;113.631849,23.569219;113.631988,23.569314;113.632374,23.569488;113.632773,23.569631;113.633064,23.569683;113.633064,23.569683;113.633247,23.569692;113.633247,23.569692;113.633481,23.569679;113.63375,23.569618;113.63533,23.569063;113.63648,23.568681;113.63648,23.568681;113.636832,23.568581;113.636832,23.568581;113.637205,23.56852;113.637205,23.56852;113.637426,23.568507;113.637695,23.568524;113.638051,23.568607;113.638394,23.568741;113.638898,23.569002;113.638898,23.569002;113.640404,23.569818;113.640647,23.569974;113.640859,23.570152;113.640859,23.570152;113.640959,23.57026;113.641163,23.570521;113.641163,23.570521;113.641432,23.570816',\n",
       "      'action': '直行',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿石海工业大道向东步行387米',\n",
       "      'orientation': '东',\n",
       "      'road': '石海工业大道',\n",
       "      'distance': '387',\n",
       "      'duration': '310',\n",
       "      'polyline': '113.641432,23.570816;113.641632,23.570998;113.641632,23.570998;113.641975,23.571224;113.642322,23.571406;113.642543,23.571497;113.642925,23.571628;113.643043,23.571649;113.643286,23.57168;113.643507,23.57168;113.643507,23.57168;113.643963,23.57168;113.643963,23.57168;113.644614,23.571671;113.644878,23.571701;113.64497,23.571727',\n",
       "      'action': [],\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿石海工业大道向东北步行1451米向左前方行走',\n",
       "      'orientation': '东北',\n",
       "      'road': '石海工业大道',\n",
       "      'distance': '1451',\n",
       "      'duration': '1161',\n",
       "      'polyline': '113.64497,23.571727;113.645247,23.571862;113.645247,23.571862;113.645964,23.572365;113.646198,23.572561;113.646415,23.572773;113.646415,23.572773;113.646606,23.572956;113.646606,23.572956;113.646788,23.573151;113.646788,23.573151;113.647274,23.573637;113.647405,23.57375;113.647405,23.57375;113.649236,23.575178;113.649236,23.575178;113.649579,23.575447;113.649579,23.575447;113.64967,23.57553;113.64967,23.57553;113.650373,23.576089;113.650373,23.576089;113.650677,23.576328;113.650677,23.576328;113.651432,23.576936;113.651432,23.576936;113.651649,23.577101;113.651649,23.577101;113.651997,23.577383;113.651997,23.577383;113.652448,23.5777;113.652708,23.57786;113.652708,23.57786;113.653424,23.578242;113.653424,23.578242;113.653676,23.578368;113.653676,23.578368;113.654562,23.578845;113.654562,23.578845;113.654913,23.579019;113.655087,23.579084;113.65605,23.579306;113.65605,23.579306;113.656406,23.579358',\n",
       "      'action': '向左前方行走',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿桃园西路向东北步行2775米直行',\n",
       "      'orientation': '东北',\n",
       "      'road': '桃园西路',\n",
       "      'distance': '2775',\n",
       "      'duration': '2220',\n",
       "      'polyline': '113.656406,23.579358;113.656593,23.579484;113.656719,23.57964;113.656719,23.57964;113.65724,23.580217;113.657292,23.580304;113.6574,23.580612;113.6574,23.580612;113.657431,23.580773;113.657483,23.582105;113.657483,23.582231;113.657474,23.582339;113.657435,23.582439;113.657383,23.582535;113.657161,23.582847;113.65707,23.583025;113.656984,23.583255;113.656892,23.583568;113.656879,23.583676;113.656879,23.58378;113.656905,23.583919;113.657057,23.584449;113.657109,23.584566;113.657322,23.584891;113.657322,23.584891;113.657478,23.585156;113.657543,23.585365;113.657543,23.585365;113.657691,23.586688;113.657743,23.586931;113.657813,23.587135;113.65875,23.589401;113.65875,23.589401;113.658819,23.589588;113.658819,23.589588;113.65911,23.590226;113.659627,23.591046;113.659627,23.591046;113.659826,23.591389;113.659926,23.591589;113.66046,23.592799;113.66046,23.592799;113.660543,23.593021;113.660725,23.593594;113.660825,23.593885;113.660903,23.594028;113.660903,23.594028;113.661146,23.59441;113.661306,23.594601;113.661558,23.594844;113.661558,23.594844;113.662235,23.59543;113.662235,23.59543;113.663472,23.596506;113.663472,23.596506;113.663741,23.596775;113.663741,23.596775;113.664067,23.597135;113.664397,23.597617;113.664397,23.597617;113.664792,23.598234;113.664792,23.598234;113.665252,23.59878;113.665252,23.59878;113.665282,23.598819;113.665282,23.598819;113.665516,23.599089;113.665516,23.599089;113.665777,23.599358;113.665777,23.599358;113.665951,23.599501;113.665951,23.599501;113.66622,23.59964;113.667326,23.600135;113.667326,23.600135;113.667943,23.600412',\n",
       "      'action': '直行',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿桃园东路向东北步行247米向左前方行走',\n",
       "      'orientation': '东北',\n",
       "      'road': '桃园东路',\n",
       "      'distance': '247',\n",
       "      'duration': '198',\n",
       "      'polyline': '113.667943,23.600412;113.668437,23.600642;113.668659,23.600764;113.668659,23.600764;113.668785,23.600855;113.669484,23.601554;113.669484,23.601554;113.669635,23.601766;113.669635,23.601766;113.669714,23.601897',\n",
       "      'action': '向左前方行走',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿桃园东路向东北步行674米直行',\n",
       "      'orientation': '东北',\n",
       "      'road': '桃园东路',\n",
       "      'distance': '674',\n",
       "      'duration': '539',\n",
       "      'polyline': '113.669714,23.601897;113.669783,23.602409;113.669813,23.602513;113.669905,23.602678;113.670017,23.602791;113.670017,23.602791;113.670195,23.602899;113.670195,23.602899;113.670521,23.603069;113.670803,23.60326;113.670803,23.60326;113.671063,23.603468;113.671406,23.60385;113.671536,23.603954;113.671675,23.604002;113.673459,23.604488;113.673459,23.604488;113.673889,23.604614;113.674232,23.604679;113.675009,23.604735',\n",
       "      'action': '直行',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿934县道向东步行118米直行',\n",
       "      'orientation': '东',\n",
       "      'road': '934县道',\n",
       "      'distance': '118',\n",
       "      'duration': '94',\n",
       "      'polyline': '113.675009,23.604735;113.675503,23.604774;113.675503,23.604774;113.675794,23.6048;113.676159,23.604883',\n",
       "      'action': '直行',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿乌土街向东北步行165米左转',\n",
       "      'orientation': '东北',\n",
       "      'road': '乌土街',\n",
       "      'distance': '165',\n",
       "      'duration': '132',\n",
       "      'polyline': '113.676159,23.604883;113.676398,23.604996;113.676984,23.605369;113.677535,23.605668',\n",
       "      'action': '左转',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿乌土街向北步行1381米向左前方行走',\n",
       "      'orientation': '北',\n",
       "      'road': '乌土街',\n",
       "      'distance': '1381',\n",
       "      'duration': '1105',\n",
       "      'polyline': '113.677535,23.605668;113.677018,23.60625;113.676918,23.606411;113.676866,23.606536;113.676823,23.606732;113.676615,23.60773;113.676484,23.608186;113.676415,23.608481;113.676415,23.608741;113.676489,23.609232;113.676502,23.609618;113.676493,23.609844;113.676411,23.61026;113.676411,23.61026;113.676411,23.610434;113.676597,23.611484;113.67684,23.612782;113.676923,23.613355;113.677044,23.614319;113.677135,23.614822;113.677335,23.615664;113.677387,23.615812;113.677604,23.616285;113.677739,23.616554;113.677969,23.616918;113.678047,23.61707;113.67809,23.617201;113.678181,23.617652',\n",
       "      'action': '向左前方行走',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '向西北步行412米右转',\n",
       "      'orientation': '西北',\n",
       "      'road': [],\n",
       "      'distance': '412',\n",
       "      'duration': '330',\n",
       "      'polyline': '113.678181,23.617652;113.678073,23.617826;113.678073,23.617826;113.677266,23.61878;113.676905,23.619188;113.67602,23.619792;113.675777,23.619944;113.675647,23.619987;113.675495,23.620013;113.675243,23.620013',\n",
       "      'action': '右转',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '向东北步行680米向左前方行走',\n",
       "      'orientation': '东北',\n",
       "      'road': [],\n",
       "      'distance': '680',\n",
       "      'duration': '544',\n",
       "      'polyline': '113.675239,23.620009;113.675595,23.620369;113.675742,23.620543;113.675872,23.62072;113.675907,23.620851;113.675907,23.62099;113.675851,23.621085;113.675768,23.621176;113.675547,23.621354;113.675438,23.621471;113.675395,23.621606;113.675378,23.621832;113.675378,23.621832;113.675382,23.622083;113.675412,23.62217;113.675495,23.622274;113.675786,23.622478;113.676037,23.622734;113.676107,23.62283;113.676267,23.623147;113.676359,23.623251;113.676528,23.623342;113.677578,23.623789;113.678411,23.624319',\n",
       "      'action': '向左前方行走',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '向东北步行42米向左前方行走',\n",
       "      'orientation': '东北',\n",
       "      'road': [],\n",
       "      'distance': '42',\n",
       "      'duration': '34',\n",
       "      'polyline': '113.678411,23.624319;113.678555,23.624505;113.678572,23.624653',\n",
       "      'action': '向左前方行走',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '向北步行321米向左前方行走',\n",
       "      'orientation': '北',\n",
       "      'road': [],\n",
       "      'distance': '321',\n",
       "      'duration': '257',\n",
       "      'polyline': '113.678572,23.624653;113.678455,23.624935;113.678429,23.625052;113.678433,23.625187;113.678524,23.625716;113.678615,23.625859;113.678711,23.625972;113.678937,23.626172;113.678997,23.626254;113.679136,23.626493;113.67918,23.626619;113.679249,23.626849;113.679288,23.627318',\n",
       "      'action': '向左前方行走',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '向西北步行177米右转',\n",
       "      'orientation': '西北',\n",
       "      'road': [],\n",
       "      'distance': '177',\n",
       "      'duration': '142',\n",
       "      'polyline': '113.679288,23.627318;113.679284,23.627522;113.67924,23.627773;113.679219,23.627865;113.679162,23.62796;113.679162,23.62796;113.679049,23.628069;113.67885,23.628229;113.678689,23.628303;113.678689,23.628303;113.678576,23.628333;113.678277,23.628368',\n",
       "      'action': '右转',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '向北步行237米右转',\n",
       "      'orientation': '北',\n",
       "      'road': [],\n",
       "      'distance': '237',\n",
       "      'duration': '190',\n",
       "      'polyline': '113.678273,23.628368;113.67829,23.628607;113.67829,23.628607;113.678312,23.62872;113.678364,23.628837;113.67842,23.628898;113.678633,23.629019;113.678685,23.62908;113.678711,23.629188;113.678711,23.629336;113.678711,23.629336;113.678711,23.63036',\n",
       "      'action': '右转',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '向东步行159米向左前方行走',\n",
       "      'orientation': '东',\n",
       "      'road': [],\n",
       "      'distance': '159',\n",
       "      'duration': '127',\n",
       "      'polyline': '113.678711,23.63036;113.678876,23.630399;113.678876,23.630399;113.679028,23.630425;113.679028,23.630425;113.679197,23.630469;113.679197,23.630469;113.679358,23.630516;113.67964,23.630634;113.67964,23.630634;113.68003,23.630768;113.68003,23.630768;113.680204,23.630838',\n",
       "      'action': '向左前方行走',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '向北步行199米左转',\n",
       "      'orientation': '北',\n",
       "      'road': [],\n",
       "      'distance': '199',\n",
       "      'duration': '159',\n",
       "      'polyline': '113.680204,23.630838;113.680404,23.631089;113.680495,23.631237;113.680586,23.631432;113.680586,23.631432;113.680629,23.631536;113.680668,23.631736;113.680642,23.632135;113.68059,23.632522',\n",
       "      'action': '左转',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '向西步行101米到达目的地',\n",
       "      'orientation': '西',\n",
       "      'road': [],\n",
       "      'distance': '101',\n",
       "      'duration': '81',\n",
       "      'polyline': '113.680586,23.632522;113.679596,23.632496',\n",
       "      'action': [],\n",
       "      'assistant_action': '到达目的地',\n",
       "      'walk_type': '0'}]}]}}"
      ]
     },
     "execution_count": 91,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "origin='113.291103,23.092973'\n",
    "location='113.679287,23.632575'\n",
    "walking(key,origin,location,sig=None,output='json',callback=None)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "**以表格形式展现**"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 96,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>instruction</th>\n",
       "      <th>orientation</th>\n",
       "      <th>road</th>\n",
       "      <th>distance</th>\n",
       "      <th>duration</th>\n",
       "      <th>polyline</th>\n",
       "      <th>action</th>\n",
       "      <th>assistant_action</th>\n",
       "      <th>walk_type</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>沿广场西路向南步行156米右转</td>\n",
       "      <td>南</td>\n",
       "      <td>广场西路</td>\n",
       "      <td>156</td>\n",
       "      <td>125</td>\n",
       "      <td>113.383342,22.933997;113.383351,22.933051;113....</td>\n",
       "      <td>右转</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>沿兴泰路向西步行587米右转</td>\n",
       "      <td>西</td>\n",
       "      <td>兴泰路</td>\n",
       "      <td>587</td>\n",
       "      <td>470</td>\n",
       "      <td>113.383377,22.932582;113.382951,22.932591;113....</td>\n",
       "      <td>右转</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>沿德兴南路向北步行85米左转</td>\n",
       "      <td>北</td>\n",
       "      <td>德兴南路</td>\n",
       "      <td>85</td>\n",
       "      <td>68</td>\n",
       "      <td>113.377682,22.932626;113.377535,22.93339</td>\n",
       "      <td>左转</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>沿东沙路向西步行588米左转</td>\n",
       "      <td>西</td>\n",
       "      <td>东沙路</td>\n",
       "      <td>588</td>\n",
       "      <td>470</td>\n",
       "      <td>113.37753,22.93339;113.377261,22.933342;113.37...</td>\n",
       "      <td>左转</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>沿环城东路向南步行85米</td>\n",
       "      <td>南</td>\n",
       "      <td>环城东路</td>\n",
       "      <td>85</td>\n",
       "      <td>68</td>\n",
       "      <td>113.371849,22.932378;113.371975,22.93174;113.3...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>沿长堤东路步行64米向右前方行走</td>\n",
       "      <td>[]</td>\n",
       "      <td>长堤东路</td>\n",
       "      <td>64</td>\n",
       "      <td>51</td>\n",
       "      <td>113.371975,22.931615;113.371797,22.931359;113....</td>\n",
       "      <td>向右前方行走</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>沿长堤东路向西步行473米向左前方行走</td>\n",
       "      <td>西</td>\n",
       "      <td>长堤东路</td>\n",
       "      <td>473</td>\n",
       "      <td>378</td>\n",
       "      <td>113.371502,22.931319;113.37105,22.931602;113.3...</td>\n",
       "      <td>向左前方行走</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>沿长堤西路向西步行382米直行</td>\n",
       "      <td>西</td>\n",
       "      <td>长堤西路</td>\n",
       "      <td>382</td>\n",
       "      <td>306</td>\n",
       "      <td>113.367118,22.932391;113.365747,22.932231;113....</td>\n",
       "      <td>直行</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>沿海傍路向西步行162米左转</td>\n",
       "      <td>西</td>\n",
       "      <td>海傍路</td>\n",
       "      <td>162</td>\n",
       "      <td>130</td>\n",
       "      <td>113.363394,22.932166;113.362778,22.932153;113....</td>\n",
       "      <td>左转</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>沿西堤路向南步行81米</td>\n",
       "      <td>南</td>\n",
       "      <td>西堤路</td>\n",
       "      <td>81</td>\n",
       "      <td>65</td>\n",
       "      <td>113.361797,22.932127;113.361806,22.932027;113....</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>10</th>\n",
       "      <td>沿长堤西路向西步行62米右转</td>\n",
       "      <td>西</td>\n",
       "      <td>长堤西路</td>\n",
       "      <td>62</td>\n",
       "      <td>50</td>\n",
       "      <td>113.361793,22.931389;113.361749,22.931345;113....</td>\n",
       "      <td>右转</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11</th>\n",
       "      <td>沿西涌大街向北步行118米左转</td>\n",
       "      <td>北</td>\n",
       "      <td>西涌大街</td>\n",
       "      <td>118</td>\n",
       "      <td>94</td>\n",
       "      <td>113.361241,22.931172;113.361102,22.932057;113....</td>\n",
       "      <td>左转</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12</th>\n",
       "      <td>向西步行63米到达目的地</td>\n",
       "      <td>西</td>\n",
       "      <td>[]</td>\n",
       "      <td>63</td>\n",
       "      <td>50</td>\n",
       "      <td>113.36105,22.932231;113.360911,22.932231;113.3...</td>\n",
       "      <td>[]</td>\n",
       "      <td>到达目的地</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "            instruction orientation  road distance duration  \\\n",
       "0       沿广场西路向南步行156米右转           南  广场西路      156      125   \n",
       "1        沿兴泰路向西步行587米右转           西   兴泰路      587      470   \n",
       "2        沿德兴南路向北步行85米左转           北  德兴南路       85       68   \n",
       "3        沿东沙路向西步行588米左转           西   东沙路      588      470   \n",
       "4          沿环城东路向南步行85米           南  环城东路       85       68   \n",
       "5      沿长堤东路步行64米向右前方行走          []  长堤东路       64       51   \n",
       "6   沿长堤东路向西步行473米向左前方行走           西  长堤东路      473      378   \n",
       "7       沿长堤西路向西步行382米直行           西  长堤西路      382      306   \n",
       "8        沿海傍路向西步行162米左转           西   海傍路      162      130   \n",
       "9           沿西堤路向南步行81米           南   西堤路       81       65   \n",
       "10       沿长堤西路向西步行62米右转           西  长堤西路       62       50   \n",
       "11      沿西涌大街向北步行118米左转           北  西涌大街      118       94   \n",
       "12         向西步行63米到达目的地           西    []       63       50   \n",
       "\n",
       "                                             polyline  action  \\\n",
       "0   113.383342,22.933997;113.383351,22.933051;113....      右转   \n",
       "1   113.383377,22.932582;113.382951,22.932591;113....      右转   \n",
       "2            113.377682,22.932626;113.377535,22.93339      左转   \n",
       "3   113.37753,22.93339;113.377261,22.933342;113.37...      左转   \n",
       "4   113.371849,22.932378;113.371975,22.93174;113.3...      []   \n",
       "5   113.371975,22.931615;113.371797,22.931359;113....  向右前方行走   \n",
       "6   113.371502,22.931319;113.37105,22.931602;113.3...  向左前方行走   \n",
       "7   113.367118,22.932391;113.365747,22.932231;113....      直行   \n",
       "8   113.363394,22.932166;113.362778,22.932153;113....      左转   \n",
       "9   113.361797,22.932127;113.361806,22.932027;113....      []   \n",
       "10  113.361793,22.931389;113.361749,22.931345;113....      右转   \n",
       "11  113.361241,22.931172;113.361102,22.932057;113....      左转   \n",
       "12  113.36105,22.932231;113.360911,22.932231;113.3...      []   \n",
       "\n",
       "   assistant_action walk_type  \n",
       "0                []         0  \n",
       "1                []         0  \n",
       "2                []         0  \n",
       "3                []         0  \n",
       "4                []         0  \n",
       "5                []         0  \n",
       "6                []         0  \n",
       "7                []         0  \n",
       "8                []         0  \n",
       "9                []         0  \n",
       "10               []         0  \n",
       "11               []         0  \n",
       "12            到达目的地         0  "
      ]
     },
     "execution_count": 96,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "df = pd.json_normalize(walking(key,'113.384300,22.934005','113.359984,22.932857')['route']['paths'][0]['steps'])\n",
    "df"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 97,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "0         沿广场西路向南步行156米右转\n",
       "1          沿兴泰路向西步行587米右转\n",
       "2          沿德兴南路向北步行85米左转\n",
       "3          沿东沙路向西步行588米左转\n",
       "4            沿环城东路向南步行85米\n",
       "5        沿长堤东路步行64米向右前方行走\n",
       "6     沿长堤东路向西步行473米向左前方行走\n",
       "7         沿长堤西路向西步行382米直行\n",
       "8          沿海傍路向西步行162米左转\n",
       "9             沿西堤路向南步行81米\n",
       "10         沿长堤西路向西步行62米右转\n",
       "11        沿西涌大街向北步行118米左转\n",
       "12           向西步行63米到达目的地\n",
       "Name: instruction, dtype: object"
      ]
     },
     "execution_count": 97,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "df['instruction']"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## 行政区域查询\n",
    "路径规划API是一套以HTTP形式提供的步行、公交、驾车查询及行驶距离计算接口，返回JSON 或 XML格式的查询数据，用于实现路径规划功能的开发。 \n",
    "由于道路/数据/算法的变更，很可能存在间隔一段时间后请求相同起终点的经纬度返回不同结果。\n",
    "### 应用方案或场景\n",
    "可用来开发一些需要获取行政区域信息的程序工作"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 98,
   "metadata": {},
   "outputs": [],
   "source": [
    "def district(key,keywords=None,subdistrict='1',page='1',offset='20',extensions='base',filter='',callback=None,output='json'):\n",
    "    #行政区域查询\n",
    "    url='https://restapi.amap.com/v3/config/district?parameters'\n",
    "    params={\n",
    "        'key':key,\n",
    "        'keywords':keywords,\n",
    "        'subdistrict':subdistrict,\n",
    "        'extensions':extensions,\n",
    "        'page':page,\n",
    "        'offset':offset,\n",
    "        'filter':filter,\n",
    "        'callback':callback,\n",
    "        'output':output     \n",
    "    }\n",
    "    response=requests.get(url,params)\n",
    "    results=response.json()\n",
    "    # return\n",
    "    return results"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "**返回下一级地级市**"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 102,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'info': 'OK',\n",
       " 'infocode': '10000',\n",
       " 'count': '1',\n",
       " 'suggestion': {'keywords': [], 'cities': []},\n",
       " 'districts': [{'citycode': [],\n",
       "   'adcode': '440000',\n",
       "   'name': '广东省',\n",
       "   'center': '113.280637,23.125178',\n",
       "   'level': 'province',\n",
       "   'districts': [{'citycode': '0754',\n",
       "     'adcode': '440500',\n",
       "     'name': '汕头市',\n",
       "     'center': '116.708463,23.37102',\n",
       "     'level': 'city',\n",
       "     'districts': []},\n",
       "    {'citycode': '0757',\n",
       "     'adcode': '440600',\n",
       "     'name': '佛山市',\n",
       "     'center': '113.122717,23.028762',\n",
       "     'level': 'city',\n",
       "     'districts': []},\n",
       "    {'citycode': '0758',\n",
       "     'adcode': '441200',\n",
       "     'name': '肇庆市',\n",
       "     'center': '112.472529,23.051546',\n",
       "     'level': 'city',\n",
       "     'districts': []},\n",
       "    {'citycode': '0752',\n",
       "     'adcode': '441300',\n",
       "     'name': '惠州市',\n",
       "     'center': '114.412599,23.079404',\n",
       "     'level': 'city',\n",
       "     'districts': []},\n",
       "    {'citycode': '0755',\n",
       "     'adcode': '440300',\n",
       "     'name': '深圳市',\n",
       "     'center': '114.085947,22.547',\n",
       "     'level': 'city',\n",
       "     'districts': []},\n",
       "    {'citycode': '0759',\n",
       "     'adcode': '440800',\n",
       "     'name': '湛江市',\n",
       "     'center': '110.364977,21.274898',\n",
       "     'level': 'city',\n",
       "     'districts': []},\n",
       "    {'citycode': '0756',\n",
       "     'adcode': '440400',\n",
       "     'name': '珠海市',\n",
       "     'center': '113.553986,22.224979',\n",
       "     'level': 'city',\n",
       "     'districts': []},\n",
       "    {'citycode': '0768',\n",
       "     'adcode': '445100',\n",
       "     'name': '潮州市',\n",
       "     'center': '116.632301,23.661701',\n",
       "     'level': 'city',\n",
       "     'districts': []},\n",
       "    {'citycode': '0668',\n",
       "     'adcode': '440900',\n",
       "     'name': '茂名市',\n",
       "     'center': '110.919229,21.659751',\n",
       "     'level': 'city',\n",
       "     'districts': []},\n",
       "    {'citycode': '0750',\n",
       "     'adcode': '440700',\n",
       "     'name': '江门市',\n",
       "     'center': '113.094942,22.590431',\n",
       "     'level': 'city',\n",
       "     'districts': []},\n",
       "    {'citycode': '0762',\n",
       "     'adcode': '441600',\n",
       "     'name': '河源市',\n",
       "     'center': '114.697802,23.746266',\n",
       "     'level': 'city',\n",
       "     'districts': []},\n",
       "    {'citycode': '0766',\n",
       "     'adcode': '445300',\n",
       "     'name': '云浮市',\n",
       "     'center': '112.044439,22.929801',\n",
       "     'level': 'city',\n",
       "     'districts': []},\n",
       "    {'citycode': '0660',\n",
       "     'adcode': '441500',\n",
       "     'name': '汕尾市',\n",
       "     'center': '115.364238,22.774485',\n",
       "     'level': 'city',\n",
       "     'districts': []},\n",
       "    {'citycode': '0662',\n",
       "     'adcode': '441700',\n",
       "     'name': '阳江市',\n",
       "     'center': '111.975107,21.859222',\n",
       "     'level': 'city',\n",
       "     'districts': []},\n",
       "    {'citycode': '0663',\n",
       "     'adcode': '445200',\n",
       "     'name': '揭阳市',\n",
       "     'center': '116.355733,23.543778',\n",
       "     'level': 'city',\n",
       "     'districts': []},\n",
       "    {'citycode': '0753',\n",
       "     'adcode': '441400',\n",
       "     'name': '梅州市',\n",
       "     'center': '116.117582,24.299112',\n",
       "     'level': 'city',\n",
       "     'districts': []},\n",
       "    {'citycode': '020',\n",
       "     'adcode': '440100',\n",
       "     'name': '广州市',\n",
       "     'center': '113.280637,23.125178',\n",
       "     'level': 'city',\n",
       "     'districts': []},\n",
       "    {'citycode': '0751',\n",
       "     'adcode': '440200',\n",
       "     'name': '韶关市',\n",
       "     'center': '113.591544,24.801322',\n",
       "     'level': 'city',\n",
       "     'districts': []},\n",
       "    {'citycode': '0763',\n",
       "     'adcode': '441800',\n",
       "     'name': '清远市',\n",
       "     'center': '113.051227,23.685022',\n",
       "     'level': 'city',\n",
       "     'districts': []},\n",
       "    {'citycode': '0760',\n",
       "     'adcode': '442000',\n",
       "     'name': '中山市',\n",
       "     'center': '113.382391,22.521113',\n",
       "     'level': 'city',\n",
       "     'districts': []},\n",
       "    {'citycode': '0769',\n",
       "     'adcode': '441900',\n",
       "     'name': '东莞市',\n",
       "     'center': '113.746262,23.046237',\n",
       "     'level': 'city',\n",
       "     'districts': []}]}]}"
      ]
     },
     "execution_count": 102,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "keywords='广东'\n",
    "subdistrict='1'\n",
    "district(key,keywords,subdistrict='1',page='1',offset='20',extensions='base',filter='',callback=None,output='json')"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "**所有地级市**"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 103,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "0     汕头市\n",
       "1     佛山市\n",
       "2     肇庆市\n",
       "3     惠州市\n",
       "4     深圳市\n",
       "5     湛江市\n",
       "6     珠海市\n",
       "7     潮州市\n",
       "8     茂名市\n",
       "9     江门市\n",
       "10    河源市\n",
       "11    云浮市\n",
       "12    汕尾市\n",
       "13    阳江市\n",
       "14    揭阳市\n",
       "15    梅州市\n",
       "16    广州市\n",
       "17    韶关市\n",
       "18    清远市\n",
       "19    中山市\n",
       "20    东莞市\n",
       "Name: name, dtype: object"
      ]
     },
     "execution_count": 103,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "a=district(key,keywords,subdistrict='1',page='1',offset='20',extensions='base',filter='',callback=None,output='json')['districts'][0]['districts']\n",
    "import pandas as pd\n",
    "pd.json_normalize(a)['name']"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## 搜索POI\n",
    "搜索服务API是一类简单的HTTP接口，提供多种查询POI信息的能力，其中包括关键字搜索、周边搜索、多边形搜索、ID查询四种筛选机制。\n",
    "### 应用方案或场景\n",
    "在用户传入经纬度坐标点附近，在设定的范围内，按照关键字或POI类型搜索到用户想去的位置"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 104,
   "metadata": {},
   "outputs": [],
   "source": [
    "def poi(keywords,city='',extensions='',citylimit=''):\n",
    "    #关键词搜索\n",
    "    url='https://restapi.amap.com/v3/place/text?parameters'\n",
    "    key='025f09933411b23de9c674584a6bbda9'\n",
    "    params={\n",
    "        'key':key,\n",
    "        'keywords':keywords,\n",
    "        'city':city,\n",
    "        'extensions':extensions,\n",
    "        'citylimit':citylimit\n",
    "      \n",
    "    }\n",
    "    response=requests.get(url,params)\n",
    "    results=response.json()\n",
    "    # return\n",
    "    return results"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 105,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'suggestion': {'keywords': [], 'cities': []},\n",
       " 'count': '900',\n",
       " 'infocode': '10000',\n",
       " 'pois': [{'parent': [],\n",
       "   'distance': [],\n",
       "   'pcode': '440000',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [], 'rating': '3.0'},\n",
       "   'recommend': '0',\n",
       "   'type': '科教文化服务;学校;中学',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/83684f2d3effb7ec28cb03574b2c9737'},\n",
       "    {'title': '外景图',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/b5972af2764f28b9d0110acb47efb57c'}],\n",
       "   'discount_num': '0',\n",
       "   'gridcode': '3513131810',\n",
       "   'typecode': '141202',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'citycode': '020',\n",
       "   'adname': '从化区',\n",
       "   'children': [],\n",
       "   'alias': [],\n",
       "   'tel': '020-87811204',\n",
       "   'id': 'B00140NYAW',\n",
       "   'tag': [],\n",
       "   'event': [],\n",
       "   'entr_location': '113.478737,23.428406',\n",
       "   'indoor_map': '0',\n",
       "   'email': [],\n",
       "   'timestamp': '2020-11-15 22:46:39',\n",
       "   'website': [],\n",
       "   'address': '太平广从南路48号',\n",
       "   'adcode': '440117',\n",
       "   'pname': '广东省',\n",
       "   'biz_type': [],\n",
       "   'cityname': '广州市',\n",
       "   'postcode': [],\n",
       "   'match': '0',\n",
       "   'business_area': [],\n",
       "   'indoor_data': {'cmsid': [], 'truefloor': [], 'cpid': [], 'floor': []},\n",
       "   'childtype': [],\n",
       "   'exit_location': [],\n",
       "   'name': '太平中学',\n",
       "   'location': '113.476415,23.428804',\n",
       "   'shopid': [],\n",
       "   'navi_poiid': 'F49F007044_258',\n",
       "   'groupbuy_num': '0'},\n",
       "  {'parent': [],\n",
       "   'distance': [],\n",
       "   'pcode': '440000',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [], 'rating': []},\n",
       "   'recommend': '0',\n",
       "   'type': '科教文化服务;学校;小学',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/2e6c2c68338d5882a81fca00088187d0'}],\n",
       "   'discount_num': '0',\n",
       "   'gridcode': '3513129321',\n",
       "   'typecode': '141203',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'citycode': '020',\n",
       "   'adname': '花都区',\n",
       "   'children': [],\n",
       "   'alias': [],\n",
       "   'tel': [],\n",
       "   'id': 'B001423HUT',\n",
       "   'tag': [],\n",
       "   'event': [],\n",
       "   'entr_location': '113.29384,23.496235',\n",
       "   'indoor_map': '0',\n",
       "   'email': [],\n",
       "   'timestamp': '2020-11-13 14:47:03',\n",
       "   'website': [],\n",
       "   'address': '花城大街1号',\n",
       "   'adcode': '440114',\n",
       "   'pname': '广东省',\n",
       "   'biz_type': [],\n",
       "   'cityname': '广州市',\n",
       "   'postcode': [],\n",
       "   'match': '0',\n",
       "   'business_area': [],\n",
       "   'indoor_data': {'cmsid': [], 'truefloor': [], 'cpid': [], 'floor': []},\n",
       "   'childtype': [],\n",
       "   'exit_location': [],\n",
       "   'name': '花城小学',\n",
       "   'location': '113.293865,23.498131',\n",
       "   'shopid': [],\n",
       "   'navi_poiid': 'F49F007043_1930',\n",
       "   'groupbuy_num': '0'},\n",
       "  {'parent': [],\n",
       "   'distance': [],\n",
       "   'pcode': '440000',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [], 'rating': '3.5'},\n",
       "   'recommend': '0',\n",
       "   'type': '科教文化服务;学校;高等院校',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/b529f106e6f10ed78546557ed4a8f4bf'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/0849f29068c57bbd6f5e4e6005fbe6cb'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/f8b765a86f33d51f43dd6b623ec33443'}],\n",
       "   'discount_num': '0',\n",
       "   'gridcode': '3413669900',\n",
       "   'typecode': '141201',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'citycode': '020',\n",
       "   'adname': '增城区',\n",
       "   'children': [],\n",
       "   'alias': '广东省华立技师学院',\n",
       "   'tel': '020-82902208;020-82908726',\n",
       "   'id': 'B00141J40R',\n",
       "   'tag': [],\n",
       "   'event': [],\n",
       "   'entr_location': '113.861451,23.241359',\n",
       "   'indoor_map': '0',\n",
       "   'email': [],\n",
       "   'timestamp': '2020-11-15 05:16:03',\n",
       "   'website': [],\n",
       "   'address': '增江街道增城大道东广州华立科技园华立路7号',\n",
       "   'adcode': '440118',\n",
       "   'pname': '广东省',\n",
       "   'biz_type': [],\n",
       "   'cityname': '广州市',\n",
       "   'postcode': [],\n",
       "   'match': '0',\n",
       "   'business_area': [],\n",
       "   'indoor_data': {'cmsid': [], 'truefloor': [], 'cpid': [], 'floor': []},\n",
       "   'childtype': [],\n",
       "   'exit_location': [],\n",
       "   'name': '广州华立科技职业学院',\n",
       "   'location': '113.86451,23.242458',\n",
       "   'shopid': [],\n",
       "   'navi_poiid': 'F49F010047_52;579',\n",
       "   'groupbuy_num': '0'},\n",
       "  {'parent': 'B00140SBWH',\n",
       "   'distance': [],\n",
       "   'pcode': '440000',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [], 'rating': '4.5'},\n",
       "   'recommend': '0',\n",
       "   'type': '科教文化服务;学校;中学',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/15bcf3187aa3b75e02c592280271c0f3'},\n",
       "    {'title': [],\n",
       "     'url': 'http://aos-cdn-image.amap.com/sns/ugccomment/ea5d65f7-2f5d-4bf5-b759-c9f843f4d431.jpg'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/01e0c1b3f12718b7aa37dce9e6ccf81b'}],\n",
       "   'discount_num': '0',\n",
       "   'gridcode': '3413525010',\n",
       "   'typecode': '141202',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'citycode': '020',\n",
       "   'adname': '荔湾区',\n",
       "   'children': [],\n",
       "   'alias': '广州市第十一中学东校区',\n",
       "   'tel': '020-81886340',\n",
       "   'id': 'B00141S2I9',\n",
       "   'tag': [],\n",
       "   'event': [],\n",
       "   'entr_location': '113.251954,23.129427',\n",
       "   'indoor_map': '0',\n",
       "   'email': [],\n",
       "   'timestamp': '2020-11-15 23:54:32',\n",
       "   'website': [],\n",
       "   'address': '西华路460号',\n",
       "   'adcode': '440103',\n",
       "   'pname': '广东省',\n",
       "   'biz_type': [],\n",
       "   'cityname': '广州市',\n",
       "   'postcode': [],\n",
       "   'match': '0',\n",
       "   'business_area': '西关',\n",
       "   'indoor_data': {'cmsid': [], 'truefloor': [], 'cpid': [], 'floor': []},\n",
       "   'childtype': '309',\n",
       "   'exit_location': [],\n",
       "   'name': '广州市南海中学初中部(西华路)',\n",
       "   'location': '113.251858,23.128564',\n",
       "   'shopid': [],\n",
       "   'navi_poiid': 'F49F011042_363249',\n",
       "   'groupbuy_num': '0'},\n",
       "  {'parent': [],\n",
       "   'distance': [],\n",
       "   'pcode': '440000',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [], 'rating': '5.0'},\n",
       "   'recommend': '0',\n",
       "   'type': '科教文化服务;学校;小学',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/a7386043349e264c69eb853f65429e48'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/4a883f9b5e656bf6f98a9868df7c72fc'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/89d8baf45b4d07c3d6b6a9288ca10618'}],\n",
       "   'discount_num': '0',\n",
       "   'gridcode': '3413322910',\n",
       "   'typecode': '141203',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'citycode': '020',\n",
       "   'adname': '番禺区',\n",
       "   'children': [],\n",
       "   'alias': [],\n",
       "   'tel': [],\n",
       "   'id': 'B00140W4G4',\n",
       "   'tag': [],\n",
       "   'event': [],\n",
       "   'entr_location': '113.363203,22.936754',\n",
       "   'indoor_map': '0',\n",
       "   'email': [],\n",
       "   'timestamp': '2020-11-13 19:29:44',\n",
       "   'website': [],\n",
       "   'address': '市桥光明南路69号',\n",
       "   'adcode': '440113',\n",
       "   'pname': '广东省',\n",
       "   'biz_type': [],\n",
       "   'cityname': '广州市',\n",
       "   'postcode': [],\n",
       "   'match': '0',\n",
       "   'business_area': '市桥',\n",
       "   'indoor_data': {'cmsid': [], 'truefloor': [], 'cpid': [], 'floor': []},\n",
       "   'childtype': [],\n",
       "   'exit_location': [],\n",
       "   'name': '先锋小学',\n",
       "   'location': '113.362658,22.936862',\n",
       "   'shopid': [],\n",
       "   'navi_poiid': 'F49F013043_258847;136643',\n",
       "   'groupbuy_num': '0'},\n",
       "  {'parent': [],\n",
       "   'distance': [],\n",
       "   'pcode': '440000',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [], 'rating': '4.5'},\n",
       "   'recommend': '0',\n",
       "   'type': '科教文化服务;学校;小学',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/64c4d1537770ab89324f9efebafcc24c'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/5b35e89c1fb6ee1cac1b2d18463814e1'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/54e6e3e3e5203f8e0fb96dfc60b45ff5'}],\n",
       "   'discount_num': '0',\n",
       "   'gridcode': '3413525500',\n",
       "   'typecode': '141203',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'citycode': '020',\n",
       "   'adname': '越秀区',\n",
       "   'children': [],\n",
       "   'alias': [],\n",
       "   'tel': '18819138426',\n",
       "   'id': 'B0FFHHQ2XG',\n",
       "   'tag': [],\n",
       "   'event': [],\n",
       "   'entr_location': '113.313837,23.125308',\n",
       "   'indoor_map': '0',\n",
       "   'email': [],\n",
       "   'timestamp': '2020-11-17 01:29:39',\n",
       "   'website': [],\n",
       "   'address': '杨箕雄镇外街9号',\n",
       "   'adcode': '440104',\n",
       "   'pname': '广东省',\n",
       "   'biz_type': [],\n",
       "   'cityname': '广州市',\n",
       "   'postcode': [],\n",
       "   'match': '0',\n",
       "   'business_area': '东湖',\n",
       "   'indoor_data': {'cmsid': [], 'truefloor': [], 'cpid': [], 'floor': []},\n",
       "   'childtype': [],\n",
       "   'exit_location': [],\n",
       "   'name': '越秀区杨箕小学',\n",
       "   'location': '113.313228,23.125158',\n",
       "   'shopid': [],\n",
       "   'navi_poiid': 'F49F011043_925377',\n",
       "   'groupbuy_num': '0'},\n",
       "  {'parent': [],\n",
       "   'distance': [],\n",
       "   'pcode': '440000',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [], 'rating': '4.5'},\n",
       "   'recommend': '0',\n",
       "   'type': '科教文化服务;学校;中学',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/77a94421567f6470d2d0d0f569cf75cb'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/84a4c3e16c3cc7f57fc65c495386133f'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/7b0c1c446cd3bed8e51f971c951fa84a'}],\n",
       "   'discount_num': '0',\n",
       "   'gridcode': '3413519622',\n",
       "   'typecode': '141202',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'citycode': '020',\n",
       "   'adname': '白云区',\n",
       "   'children': [],\n",
       "   'alias': [],\n",
       "   'tel': '020-81793093;020-83334449',\n",
       "   'id': 'B0FFGFB799',\n",
       "   'tag': [],\n",
       "   'event': [],\n",
       "   'entr_location': '113.207534,23.165987',\n",
       "   'indoor_map': '0',\n",
       "   'email': [],\n",
       "   'timestamp': '2020-11-17 04:57:34',\n",
       "   'website': [],\n",
       "   'address': '金沙洲岛善贤路1号',\n",
       "   'adcode': '440111',\n",
       "   'pname': '广东省',\n",
       "   'biz_type': [],\n",
       "   'cityname': '广州市',\n",
       "   'postcode': [],\n",
       "   'match': '0',\n",
       "   'business_area': [],\n",
       "   'indoor_data': {'cmsid': [], 'truefloor': [], 'cpid': [], 'floor': []},\n",
       "   'childtype': [],\n",
       "   'exit_location': [],\n",
       "   'name': '广东华侨中学(高中部金沙洲校区)',\n",
       "   'location': '113.20837,23.165924',\n",
       "   'shopid': [],\n",
       "   'navi_poiid': 'F49F010042_131690',\n",
       "   'groupbuy_num': '0'},\n",
       "  {'parent': [],\n",
       "   'distance': [],\n",
       "   'pcode': '440000',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [], 'rating': '4.5'},\n",
       "   'recommend': '0',\n",
       "   'type': '科教文化服务;学校;中学',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/7d2384f51724e6ad7278ae5eac7eac2c'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/d8d4e5cb73b00e32f3c80c69ea57af70'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/a9b18999b723b660fa6ddb62905c4952'}],\n",
       "   'discount_num': '0',\n",
       "   'gridcode': '3413523022',\n",
       "   'typecode': '141202',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'citycode': '020',\n",
       "   'adname': '越秀区',\n",
       "   'children': [],\n",
       "   'alias': [],\n",
       "   'tel': '020-83230957',\n",
       "   'id': 'B0FFFQ0UYH',\n",
       "   'tag': [],\n",
       "   'event': [],\n",
       "   'entr_location': '113.25985,23.114425',\n",
       "   'indoor_map': '0',\n",
       "   'email': [],\n",
       "   'timestamp': '2020-11-16 19:38:51',\n",
       "   'website': [],\n",
       "   'address': '旧部前56-3号',\n",
       "   'adcode': '440104',\n",
       "   'pname': '广东省',\n",
       "   'biz_type': [],\n",
       "   'cityname': '广州市',\n",
       "   'postcode': [],\n",
       "   'match': '0',\n",
       "   'business_area': '大新',\n",
       "   'indoor_data': {'cmsid': [], 'truefloor': [], 'cpid': [], 'floor': []},\n",
       "   'childtype': [],\n",
       "   'exit_location': [],\n",
       "   'name': '广州市越秀区明德实验学校',\n",
       "   'location': '113.259656,23.114377',\n",
       "   'shopid': [],\n",
       "   'navi_poiid': 'F49F011043_330303',\n",
       "   'groupbuy_num': '0'},\n",
       "  {'parent': [],\n",
       "   'distance': [],\n",
       "   'pcode': '440000',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [], 'rating': '4.5'},\n",
       "   'recommend': '0',\n",
       "   'type': '科教文化服务;学校;中学',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/068f924459fa847d56330c3e58590f18'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/c45aac6d6b070fe6598a647100247cd2'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/7082dfab18b7e028cd480ebe86f1a271'}],\n",
       "   'discount_num': '0',\n",
       "   'gridcode': '3413631722',\n",
       "   'typecode': '141202',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'citycode': '020',\n",
       "   'adname': '黄埔区',\n",
       "   'children': [],\n",
       "   'alias': [],\n",
       "   'tel': '020-32079801',\n",
       "   'id': 'B00141J1MS',\n",
       "   'tag': [],\n",
       "   'event': [],\n",
       "   'entr_location': '113.474152,23.182286',\n",
       "   'indoor_map': '0',\n",
       "   'email': [],\n",
       "   'timestamp': '2020-11-16 16:35:34',\n",
       "   'website': [],\n",
       "   'address': '水西路西50米',\n",
       "   'adcode': '440112',\n",
       "   'pname': '广东省',\n",
       "   'biz_type': [],\n",
       "   'cityname': '广州市',\n",
       "   'postcode': [],\n",
       "   'match': '0',\n",
       "   'business_area': [],\n",
       "   'indoor_data': {'cmsid': [], 'truefloor': [], 'cpid': [], 'floor': []},\n",
       "   'childtype': [],\n",
       "   'exit_location': [],\n",
       "   'name': '广州市二中苏元实验学校',\n",
       "   'location': '113.473692,23.182952',\n",
       "   'shopid': [],\n",
       "   'navi_poiid': 'F49F010044_1750',\n",
       "   'groupbuy_num': '0'},\n",
       "  {'parent': [],\n",
       "   'distance': [],\n",
       "   'pcode': '440000',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [], 'rating': []},\n",
       "   'recommend': '0',\n",
       "   'type': '科教文化服务;学校;中学',\n",
       "   'photos': [{'title': '内景图',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/ad5b1b949709178017a2a33e96185f56'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/561690cd6eda571b0b404428071f961d'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/bcdfdf7e02427a976d8a3c3a134665b5'}],\n",
       "   'discount_num': '0',\n",
       "   'gridcode': '3513352322',\n",
       "   'typecode': '141202',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'citycode': '020',\n",
       "   'adname': '从化区',\n",
       "   'children': [],\n",
       "   'alias': [],\n",
       "   'tel': [],\n",
       "   'id': 'B00140A940',\n",
       "   'tag': [],\n",
       "   'event': [],\n",
       "   'entr_location': '113.673318,23.607005',\n",
       "   'indoor_map': '0',\n",
       "   'email': [],\n",
       "   'timestamp': '2020-11-16 14:43:05',\n",
       "   'website': [],\n",
       "   'address': '桃园镇',\n",
       "   'adcode': '440117',\n",
       "   'pname': '广东省',\n",
       "   'biz_type': [],\n",
       "   'cityname': '广州市',\n",
       "   'postcode': [],\n",
       "   'match': '0',\n",
       "   'business_area': [],\n",
       "   'indoor_data': {'cmsid': [], 'truefloor': [], 'cpid': [], 'floor': []},\n",
       "   'childtype': [],\n",
       "   'exit_location': [],\n",
       "   'name': '桃园中学',\n",
       "   'location': '113.67338,23.608175',\n",
       "   'shopid': [],\n",
       "   'navi_poiid': 'F49F005046_65',\n",
       "   'groupbuy_num': '0'},\n",
       "  {'parent': [],\n",
       "   'distance': [],\n",
       "   'pcode': '440000',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [], 'rating': '4.5'},\n",
       "   'recommend': '0',\n",
       "   'type': '科教文化服务;学校;中学',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/aa728fc710888d5170a29770ba44f8c5'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/d4d724c8ce18a894fb8e20f77923551d'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/c90e8db7b5d6c9a063068e25bd09749e'}],\n",
       "   'discount_num': '0',\n",
       "   'gridcode': '3413438322',\n",
       "   'typecode': '141202',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'citycode': '020',\n",
       "   'adname': '黄埔区',\n",
       "   'children': [],\n",
       "   'alias': [],\n",
       "   'tel': '020-32359667',\n",
       "   'id': 'B0FFFAHBF5',\n",
       "   'tag': [],\n",
       "   'event': [],\n",
       "   'entr_location': '113.421875,23.073754',\n",
       "   'indoor_map': '0',\n",
       "   'email': [],\n",
       "   'timestamp': '2020-11-14 23:10:34',\n",
       "   'website': [],\n",
       "   'address': '金洲北路516号(近长洲街)',\n",
       "   'adcode': '440112',\n",
       "   'pname': '广东省',\n",
       "   'biz_type': [],\n",
       "   'cityname': '广州市',\n",
       "   'postcode': [],\n",
       "   'match': '0',\n",
       "   'business_area': '长洲',\n",
       "   'indoor_data': {'cmsid': [], 'truefloor': [], 'cpid': [], 'floor': []},\n",
       "   'childtype': [],\n",
       "   'exit_location': [],\n",
       "   'name': '华南师范大学附属初级中学',\n",
       "   'location': '113.422833,23.074195',\n",
       "   'shopid': [],\n",
       "   'navi_poiid': 'F49F012044_36488',\n",
       "   'groupbuy_num': '0'},\n",
       "  {'parent': [],\n",
       "   'distance': [],\n",
       "   'pcode': '440000',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [], 'rating': '5.0'},\n",
       "   'recommend': '0',\n",
       "   'type': '科教文化服务;学校;中学',\n",
       "   'photos': [{'title': '外景图',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/d395d44cdbd19fc2a2fb163417282801'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/1cf3f27f7d647fe2f593c626c4d8bcda'},\n",
       "    {'title': '外景图',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/09ee303c4a16968bef71c9b1785289f3'}],\n",
       "   'discount_num': '0',\n",
       "   'gridcode': '3413526100',\n",
       "   'typecode': '141202',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'citycode': '020',\n",
       "   'adname': '越秀区',\n",
       "   'children': [],\n",
       "   'alias': [],\n",
       "   'tel': '020-83555006',\n",
       "   'id': 'B00140B5KU',\n",
       "   'tag': [],\n",
       "   'event': [],\n",
       "   'entr_location': '113.266225,23.13459',\n",
       "   'indoor_map': '0',\n",
       "   'email': [],\n",
       "   'timestamp': '2020-11-13 23:11:17',\n",
       "   'website': [],\n",
       "   'address': '应元路21号',\n",
       "   'adcode': '440104',\n",
       "   'pname': '广东省',\n",
       "   'biz_type': [],\n",
       "   'cityname': '广州市',\n",
       "   'postcode': [],\n",
       "   'match': '0',\n",
       "   'business_area': '解放北',\n",
       "   'indoor_data': {'cmsid': [], 'truefloor': [], 'cpid': [], 'floor': []},\n",
       "   'childtype': [],\n",
       "   'exit_location': [],\n",
       "   'name': '广州市第二中学',\n",
       "   'location': '113.265751,23.13501',\n",
       "   'shopid': [],\n",
       "   'navi_poiid': 'F49F011043_22739',\n",
       "   'groupbuy_num': '0'},\n",
       "  {'parent': [],\n",
       "   'distance': [],\n",
       "   'pcode': '440000',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [], 'rating': '4.0'},\n",
       "   'recommend': '0',\n",
       "   'type': '科教文化服务;学校;中学',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/9b38cf4abc5a1a0f23a3148200f362ed'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/4a100ee662801ac9b20ce103356849b7'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/ec3d239eb31d806cf9e67ad2d25ca1ea'}],\n",
       "   'discount_num': '0',\n",
       "   'gridcode': '3413764320',\n",
       "   'typecode': '141202',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'citycode': '020',\n",
       "   'adname': '增城区',\n",
       "   'children': [],\n",
       "   'alias': [],\n",
       "   'tel': '020-82659383',\n",
       "   'id': 'B00141J9VS',\n",
       "   'tag': [],\n",
       "   'event': [],\n",
       "   'entr_location': '113.79166,23.289362',\n",
       "   'indoor_map': '0',\n",
       "   'email': [],\n",
       "   'timestamp': '2020-11-15 11:50:20',\n",
       "   'website': [],\n",
       "   'address': '荔城街荔城大道420号',\n",
       "   'adcode': '440118',\n",
       "   'pname': '广东省',\n",
       "   'biz_type': [],\n",
       "   'cityname': '广州市',\n",
       "   'postcode': [],\n",
       "   'match': '0',\n",
       "   'business_area': [],\n",
       "   'indoor_data': {'cmsid': [], 'truefloor': [], 'cpid': [], 'floor': []},\n",
       "   'childtype': [],\n",
       "   'exit_location': [],\n",
       "   'name': '增城中学',\n",
       "   'location': '113.790277,23.290754',\n",
       "   'shopid': [],\n",
       "   'navi_poiid': 'F49F009047_104790',\n",
       "   'groupbuy_num': '0'},\n",
       "  {'parent': [],\n",
       "   'distance': [],\n",
       "   'pcode': '440000',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [], 'rating': '4.5'},\n",
       "   'recommend': '0',\n",
       "   'type': '科教文化服务;学校;小学',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/87a97bc53f7b0c53d935410a03f0f421'},\n",
       "    {'title': '外景图',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/fbd24d133f6d95bfc7839b7559132aa6'},\n",
       "    {'title': '外景图',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/6a02061f1f35c78121ceb12d46f07a80'}],\n",
       "   'discount_num': '0',\n",
       "   'gridcode': '3413522210',\n",
       "   'typecode': '141203',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'citycode': '020',\n",
       "   'adname': '海珠区',\n",
       "   'children': [],\n",
       "   'alias': [],\n",
       "   'tel': '020-84238010',\n",
       "   'id': 'B00140MAKX',\n",
       "   'tag': [],\n",
       "   'event': [],\n",
       "   'entr_location': '113.276899,23.103704',\n",
       "   'indoor_map': '0',\n",
       "   'email': [],\n",
       "   'timestamp': '2020-11-17 03:36:06',\n",
       "   'website': [],\n",
       "   'address': '前进路素社直街42号',\n",
       "   'adcode': '440105',\n",
       "   'pname': '广东省',\n",
       "   'biz_type': [],\n",
       "   'cityname': '广州市',\n",
       "   'postcode': [],\n",
       "   'match': '0',\n",
       "   'business_area': '滨江',\n",
       "   'indoor_data': {'cmsid': [], 'truefloor': [], 'cpid': [], 'floor': []},\n",
       "   'childtype': [],\n",
       "   'exit_location': [],\n",
       "   'name': '前进路小学',\n",
       "   'location': '113.277098,23.104068',\n",
       "   'shopid': [],\n",
       "   'navi_poiid': 'F49F011043_603126',\n",
       "   'groupbuy_num': '0'},\n",
       "  {'parent': [],\n",
       "   'distance': [],\n",
       "   'pcode': '440000',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [], 'rating': '4.5'},\n",
       "   'recommend': '0',\n",
       "   'type': '科教文化服务;学校;中学',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/e868e670a71e376fb3b2476719d135e2'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/45606030f7ab8abfa6d5515663940def'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/8c654a557b220086c0860e2bdd1ba0ae'}],\n",
       "   'discount_num': '0',\n",
       "   'gridcode': '3413521102',\n",
       "   'typecode': '141202',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'citycode': '020',\n",
       "   'adname': '海珠区',\n",
       "   'children': [],\n",
       "   'alias': [],\n",
       "   'tel': '020-84420012',\n",
       "   'id': 'B00141SZMO',\n",
       "   'tag': [],\n",
       "   'event': [],\n",
       "   'entr_location': '113.272524,23.092451',\n",
       "   'indoor_map': '0',\n",
       "   'email': [],\n",
       "   'timestamp': '2020-11-16 08:55:48',\n",
       "   'website': [],\n",
       "   'address': '玫瑰二街12号',\n",
       "   'adcode': '440105',\n",
       "   'pname': '广东省',\n",
       "   'biz_type': [],\n",
       "   'cityname': '广州市',\n",
       "   'postcode': [],\n",
       "   'match': '0',\n",
       "   'business_area': '江南大道',\n",
       "   'indoor_data': {'cmsid': [], 'truefloor': [], 'cpid': [], 'floor': []},\n",
       "   'childtype': [],\n",
       "   'exit_location': [],\n",
       "   'name': '广州市岭南画派纪念中学',\n",
       "   'location': '113.273089,23.092396',\n",
       "   'shopid': [],\n",
       "   'navi_poiid': 'F49F011043_313262',\n",
       "   'groupbuy_num': '0'},\n",
       "  {'parent': [],\n",
       "   'distance': [],\n",
       "   'pcode': '440000',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [], 'rating': '4.5'},\n",
       "   'recommend': '0',\n",
       "   'type': '科教文化服务;学校;中学',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/d1ea86b6730d48cdc1eabee4797e618f'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/bb08845bdc3054c646476c571114dbeb'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/2e356ed947676575b9a9064176cea8d1'}],\n",
       "   'discount_num': '0',\n",
       "   'gridcode': '3413669502',\n",
       "   'typecode': '141202',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'citycode': '020',\n",
       "   'adname': '增城区',\n",
       "   'children': [],\n",
       "   'alias': '华侨中学',\n",
       "   'tel': '020-82630568;020-82666173',\n",
       "   'id': 'B00141K741',\n",
       "   'tag': [],\n",
       "   'event': [],\n",
       "   'entr_location': '113.821162,23.244435',\n",
       "   'indoor_map': '0',\n",
       "   'email': [],\n",
       "   'timestamp': '2020-11-14 16:41:27',\n",
       "   'website': [],\n",
       "   'address': '荔城街罗岗村九升社',\n",
       "   'adcode': '440118',\n",
       "   'pname': '广东省',\n",
       "   'biz_type': [],\n",
       "   'cityname': '广州市',\n",
       "   'postcode': [],\n",
       "   'match': '0',\n",
       "   'business_area': [],\n",
       "   'indoor_data': {'cmsid': [], 'truefloor': [], 'cpid': [], 'floor': []},\n",
       "   'childtype': [],\n",
       "   'exit_location': [],\n",
       "   'name': '增城区第一中学',\n",
       "   'location': '113.822018,23.242464',\n",
       "   'shopid': [],\n",
       "   'navi_poiid': 'F49F010047_4062',\n",
       "   'groupbuy_num': '0'},\n",
       "  {'parent': [],\n",
       "   'distance': [],\n",
       "   'pcode': '440000',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [], 'rating': '4.5'},\n",
       "   'recommend': '0',\n",
       "   'type': '科教文化服务;学校;中学',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/90da23edc161a8d5c9a9a4c756bb49b9'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/c6d4d7386b1ef3af2afc6b0376059ee2'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/4bac092ec683f4186759a95e7344e13a'}],\n",
       "   'discount_num': '0',\n",
       "   'gridcode': '3413530121',\n",
       "   'typecode': '141202',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'citycode': '020',\n",
       "   'adname': '海珠区',\n",
       "   'children': [],\n",
       "   'alias': [],\n",
       "   'tel': '020-34092060',\n",
       "   'id': 'B00140W5FY',\n",
       "   'tag': [],\n",
       "   'event': [],\n",
       "   'entr_location': '113.39262,23.088817',\n",
       "   'indoor_map': '0',\n",
       "   'email': [],\n",
       "   'timestamp': '2020-11-14 03:36:44',\n",
       "   'website': [],\n",
       "   'address': '新港东路黄埔村华佗里6号',\n",
       "   'adcode': '440105',\n",
       "   'pname': '广东省',\n",
       "   'biz_type': [],\n",
       "   'cityname': '广州市',\n",
       "   'postcode': [],\n",
       "   'match': '0',\n",
       "   'business_area': '琶洲村',\n",
       "   'indoor_data': {'cmsid': [], 'truefloor': [], 'cpid': [], 'floor': []},\n",
       "   'childtype': [],\n",
       "   'exit_location': [],\n",
       "   'name': '黄埔中学',\n",
       "   'location': '113.392621,23.089476',\n",
       "   'shopid': [],\n",
       "   'navi_poiid': 'F49F011044_98021',\n",
       "   'groupbuy_num': '0'},\n",
       "  {'parent': [],\n",
       "   'distance': [],\n",
       "   'pcode': '440000',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [], 'rating': '4.5'},\n",
       "   'recommend': '0',\n",
       "   'type': '科教文化服务;学校;中学',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/44d5aae93e0d908fecab34c76c2ef947'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/14d2d13dd8afecfe0258bfb515bb777b'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/3b125f704bf496b76bebbac1337187dd'}],\n",
       "   'discount_num': '0',\n",
       "   'gridcode': '3413621702',\n",
       "   'typecode': '141202',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'citycode': '020',\n",
       "   'adname': '天河区',\n",
       "   'children': [],\n",
       "   'alias': [],\n",
       "   'tel': '020-37091009',\n",
       "   'id': 'B00140TVA0',\n",
       "   'tag': [],\n",
       "   'event': [],\n",
       "   'entr_location': '113.348088,23.17744',\n",
       "   'indoor_map': '0',\n",
       "   'email': [],\n",
       "   'timestamp': '2020-11-16 14:59:56',\n",
       "   'website': [],\n",
       "   'address': '天源路399号',\n",
       "   'adcode': '440106',\n",
       "   'pname': '广东省',\n",
       "   'biz_type': [],\n",
       "   'cityname': '广州市',\n",
       "   'postcode': [],\n",
       "   'match': '0',\n",
       "   'business_area': '元岗',\n",
       "   'indoor_data': {'cmsid': [], 'truefloor': [], 'cpid': [], 'floor': []},\n",
       "   'childtype': [],\n",
       "   'exit_location': [],\n",
       "   'name': '广东实验中学附属天河学校',\n",
       "   'location': '113.346508,23.177128',\n",
       "   'shopid': [],\n",
       "   'navi_poiid': 'F49F010043_73641',\n",
       "   'groupbuy_num': '0'},\n",
       "  {'parent': [],\n",
       "   'distance': [],\n",
       "   'pcode': '440000',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [], 'rating': '4.5'},\n",
       "   'recommend': '0',\n",
       "   'type': '科教文化服务;学校;中学',\n",
       "   'photos': [{'title': '外景图',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/1813015356a2d95602eaf6fee78d4e4e'},\n",
       "    {'title': '外景图',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/7a8fd63417b8be9cd1edcdf7c52fdcde'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/1bf88bbcc96b082759649a67c45a79eb'}],\n",
       "   'discount_num': '0',\n",
       "   'gridcode': '3413521411',\n",
       "   'typecode': '141202',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'citycode': '020',\n",
       "   'adname': '海珠区',\n",
       "   'children': [],\n",
       "   'alias': [],\n",
       "   'tel': '020-89020162',\n",
       "   'id': 'B00140AQWT',\n",
       "   'tag': [],\n",
       "   'event': [],\n",
       "   'entr_location': '113.307261,23.096163',\n",
       "   'indoor_map': '0',\n",
       "   'email': [],\n",
       "   'timestamp': '2020-11-16 11:17:41',\n",
       "   'website': [],\n",
       "   'address': '新港西路179号',\n",
       "   'adcode': '440105',\n",
       "   'pname': '广东省',\n",
       "   'biz_type': [],\n",
       "   'cityname': '广州市',\n",
       "   'postcode': [],\n",
       "   'match': '0',\n",
       "   'business_area': '新港',\n",
       "   'indoor_data': {'cmsid': [], 'truefloor': [], 'cpid': [], 'floor': []},\n",
       "   'childtype': [],\n",
       "   'exit_location': [],\n",
       "   'name': '广州市第六中学',\n",
       "   'location': '113.306832,23.09787',\n",
       "   'shopid': [],\n",
       "   'navi_poiid': 'F49F011043_71227;388179',\n",
       "   'groupbuy_num': '0'},\n",
       "  {'parent': [],\n",
       "   'distance': [],\n",
       "   'pcode': '440000',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [], 'rating': '4.5'},\n",
       "   'recommend': '0',\n",
       "   'type': '科教文化服务;学校;中学',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/dae5b1888f0936c95cd0708c0d2b388e'},\n",
       "    {'title': '外景图',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/4732b50a704c61bbe784084ae9047f33'},\n",
       "    {'title': '外景图',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/2e99151e6e400bd552c2110e72f669ad'}],\n",
       "   'discount_num': '0',\n",
       "   'gridcode': '3413514802',\n",
       "   'typecode': '141202',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'citycode': '020',\n",
       "   'adname': '荔湾区',\n",
       "   'children': [],\n",
       "   'alias': [],\n",
       "   'tel': [],\n",
       "   'id': 'B00140K35Q',\n",
       "   'tag': [],\n",
       "   'event': [],\n",
       "   'entr_location': '113.234946,23.116918',\n",
       "   'indoor_map': '0',\n",
       "   'email': [],\n",
       "   'timestamp': '2020-11-16 13:35:21',\n",
       "   'website': [],\n",
       "   'address': '多宝路67号',\n",
       "   'adcode': '440103',\n",
       "   'pname': '广东省',\n",
       "   'biz_type': [],\n",
       "   'cityname': '广州市',\n",
       "   'postcode': [],\n",
       "   'match': '0',\n",
       "   'business_area': '西关',\n",
       "   'indoor_data': {'cmsid': [], 'truefloor': [], 'cpid': [], 'floor': []},\n",
       "   'childtype': [],\n",
       "   'exit_location': [],\n",
       "   'name': '广州市西关培英中学',\n",
       "   'location': '113.234861,23.117349',\n",
       "   'shopid': [],\n",
       "   'navi_poiid': 'F49F011042_20882',\n",
       "   'groupbuy_num': '0'}],\n",
       " 'status': '1',\n",
       " 'info': 'OK'}"
      ]
     },
     "execution_count": 105,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "keywords='学校'\n",
    "city='广州'\n",
    "citylimit='true'\n",
    "text(keywords,city,extensions,citylimit)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## IP定位\n",
    "IP定位是一个简单的HTTP接口，根据用户输入的IP地址，能够快速的帮用户定位IP的所在位置。\n",
    "### 应用方案或场景\n",
    "可适用于需要通过IP信息获取为地理位置信息的应用"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 106,
   "metadata": {},
   "outputs": [],
   "source": [
    "def ip(key,id):\n",
    "    # ip定位\n",
    "    url='https://restapi.amap.com/v3/ip?parameters'\n",
    "    key='025f09933411b23de9c674584a6bbda9'\n",
    "    params={\n",
    "        'key':key,\n",
    "        'id':id\n",
    "      \n",
    "    }\n",
    "    response=requests.get(url,params)\n",
    "    results=response.json()\n",
    "    # return\n",
    "    return results"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 107,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'info': 'OK',\n",
       " 'infocode': '10000',\n",
       " 'province': '广东省',\n",
       " 'city': '广州市',\n",
       " 'adcode': '440100',\n",
       " 'rectangle': '113.1017375,22.93212254;113.6770499,23.3809537'}"
      ]
     },
     "execution_count": 107,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "id='10.53.16.115'\n",
    "ip(key,id)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## 静态地图\n",
    "静态地图服务通过返回一张地图图片响应HTTP请求，使用户能够将高德地图以图片形式嵌入自己的网页中。用户可以指定请求的地图位置、图片大小、以及在地图上添加覆盖物，如标签、标注、折线、多边形。\n",
    "### 应用方案或场景\n",
    "可用于地图app中"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 108,
   "metadata": {},
   "outputs": [],
   "source": [
    "def map(key,location,zoom,size='400*400',scale='1',markers=None,labels=None,paths=None,traffic='0',sig=None):\n",
    "    #获取静态地图信息\n",
    "    url='https://restapi.amap.com/v3/staticmap?parameters'\n",
    "    params={\n",
    "    'key':key,\n",
    "    'location':location,\n",
    "    'zoom':zoom,\n",
    "    'scale':scale,\n",
    "    'markers':markers,\n",
    "    'labels':labels,\n",
    "    'paths':paths,\n",
    "    'traffic':traffic,\n",
    "    'sig':sig\n",
    "    }\n",
    "    r=requests.get(url,params)\n",
    "    data=r.url\n",
    "    return data"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 110,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'https://restapi.amap.com/v3/staticmap?parameters&key=025f09933411b23de9c674584a6bbda9&location=113.291103%2C23.092973&zoom=17&scale=1'"
      ]
     },
     "execution_count": 110,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "location='113.291103,23.092973'\n",
    "zoom='17'\n",
    "amap(key,location,zoom,size='400*400',scale='1',markers=None,labels=None,paths=None,traffic=None,sig=None)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "[图片](https://restapi.amap.com/v3/staticmap?parameters&key=025f09933411b23de9c674584a6bbda9&location=113.291103%2C23.092973&zoom=17&scale=1)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## 坐标转换\n",
    "坐标转换是一类简单的HTTP接口，能够将用户输入的非高德坐标（GPS坐标、mapbar坐标、baidu坐标）转换成高德坐标。\n",
    "### 应用方案或场景\n",
    "为了使用某个app中的服务，用户需要将非该app坐标转换为该app可识别的坐标。"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 111,
   "metadata": {},
   "outputs": [],
   "source": [
    "def coordinate(key,locations,coordays='',sig='',output=''):\n",
    "    url='https://restapi.amap.com/v3/assistant/coordinate/convert?parameters'\n",
    "    params={\n",
    "        'key':key,\n",
    "        \"locations\":locations,\n",
    "        'coordays':coordays,\n",
    "        'sig':sig,\n",
    "        'output':output\n",
    "    }\n",
    "    response=requests.get(url,params)\n",
    "    r=response.json()\n",
    "    return r"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 112,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'info': 'ok',\n",
       " 'infocode': '10000',\n",
       " 'locations': '116.481499,39.990475|116.481499,39.990375'}"
      ]
     },
     "execution_count": 112,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "locations='116.481499,39.990475|116.481499,39.990375'\n",
    "convert(key,locations,coordays='',sig='',output='')"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## 天气查询\n",
    "天气查询是一个简单的HTTP接口，根据用户输入的adcode，查询目标区域当前/未来的天气情况。\n",
    "### 应用方案或场景\n",
    "在app中添加天气查询功能"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 113,
   "metadata": {},
   "outputs": [],
   "source": [
    "def weather(key,city,extensions='base',output=''):\n",
    "    url='https://restapi.amap.com/v3/weather/weatherInfo?parameters'\n",
    "    params={\n",
    "        'key':key,\n",
    "       'city':city,\n",
    "        'extensions':extensions,\n",
    "        'output':output\n",
    "    }\n",
    "    response=requests.get(url,params)\n",
    "    r=response.json()\n",
    "    return r"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "**相应城市编码详见API文档**"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 115,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'count': '1',\n",
       " 'info': 'OK',\n",
       " 'infocode': '10000',\n",
       " 'lives': [{'province': '广东',\n",
       "   'city': '汕头市',\n",
       "   'adcode': '440500',\n",
       "   'weather': '多云',\n",
       "   'temperature': '27',\n",
       "   'winddirection': '东',\n",
       "   'windpower': '4',\n",
       "   'humidity': '59',\n",
       "   'reporttime': '2020-11-17 14:52:18'}]}"
      ]
     },
     "execution_count": 115,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "city='440500'\n",
    "weather(key,city,extensions='base',output='')"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## 输入提示\n",
    "输入提示是一类简单的HTTP接口，提供根据用户输入的关键词查询返回建议列表。\n",
    "### 应用方案或场景\n",
    "在地图app客户端的使用场景，输入某个关键词之后出现相关信息提示。"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 116,
   "metadata": {},
   "outputs": [],
   "source": [
    "def input(key,keywords,type=None,location=None,city=None,\n",
    "          citylimit='false',datatype=None,sig=None,output='json',callback=None):\n",
    "    # 输入提示\n",
    "    url='https://restapi.amap.com/v3/assistant/inputtips?parameters'\n",
    "    params={\n",
    "        'key':key,\n",
    "        'keywords':keywords,\n",
    "        'type':type,\n",
    "        'location':location,\n",
    "        'city':city,\n",
    "        'citylimit':citylimit,\n",
    "        'datatype':datatype,\n",
    "        'sig':sig,\n",
    "        'output':output,\n",
    "        'callback':callback\n",
    "    }\n",
    "    response=requests.get(url,params)\n",
    "    r=response.json()\n",
    "    return r"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 119,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'count': '10',\n",
       " 'info': 'OK',\n",
       " 'infocode': '10000',\n",
       " 'tips': [{'id': 'B00140WBI1',\n",
       "   'name': '广州塔',\n",
       "   'district': '广东省广州市海珠区',\n",
       "   'adcode': '440105',\n",
       "   'location': '113.324553,23.106414',\n",
       "   'address': '阅江西路222号',\n",
       "   'typecode': '110200',\n",
       "   'city': []},\n",
       "  {'id': 'BV10015731',\n",
       "   'name': '广州塔(地铁站)',\n",
       "   'district': '广东省广州市海珠区',\n",
       "   'adcode': '440105',\n",
       "   'location': '113.323618,23.106375',\n",
       "   'address': '3号线;APM线',\n",
       "   'typecode': '150500',\n",
       "   'city': []},\n",
       "  {'id': 'B00141R66H',\n",
       "   'name': '广州塔(东门)',\n",
       "   'district': '广东省广州市海珠区',\n",
       "   'adcode': '440105',\n",
       "   'location': '113.326019,23.106445',\n",
       "   'address': [],\n",
       "   'typecode': '991400',\n",
       "   'city': []},\n",
       "  {'id': 'B00141R66Z',\n",
       "   'name': '广州塔-停车场',\n",
       "   'district': '广东省广州市海珠区',\n",
       "   'adcode': '440105',\n",
       "   'location': '113.324169,23.105691',\n",
       "   'address': '阅江西路222号广州塔',\n",
       "   'typecode': '150904',\n",
       "   'city': []},\n",
       "  {'id': 'B00141I9XU',\n",
       "   'name': '广州塔停车场',\n",
       "   'district': '广东省广州市海珠区',\n",
       "   'adcode': '440105',\n",
       "   'location': '113.323977,23.105515',\n",
       "   'address': '阅江西路222号广州塔',\n",
       "   'typecode': '150904',\n",
       "   'city': []},\n",
       "  {'id': 'B0FFG23D94',\n",
       "   'name': '广州塔(西门)',\n",
       "   'district': '广东省广州市海珠区',\n",
       "   'adcode': '440105',\n",
       "   'location': '113.323346,23.105516',\n",
       "   'address': '滨江东路与艺苑路交叉口南150米',\n",
       "   'typecode': '991400',\n",
       "   'city': []},\n",
       "  {'id': 'B0FFJCE769',\n",
       "   'name': '广州塔财富码头',\n",
       "   'district': '广东省广州市海珠区',\n",
       "   'adcode': '440105',\n",
       "   'location': '113.326833,23.107518',\n",
       "   'address': '阅江西路222号东侧',\n",
       "   'typecode': '150300',\n",
       "   'city': []},\n",
       "  {'id': 'B0FFF5G1J3',\n",
       "   'name': '广州塔(南门)',\n",
       "   'district': '广东省广州市海珠区',\n",
       "   'adcode': '440105',\n",
       "   'location': '113.324596,23.105751',\n",
       "   'address': '艺苑路附近',\n",
       "   'typecode': '991000',\n",
       "   'city': []},\n",
       "  {'id': 'B0FFIR6FX8',\n",
       "   'name': '广州塔-珠江夜游',\n",
       "   'district': '广东省广州市海珠区',\n",
       "   'adcode': '440105',\n",
       "   'location': '113.324506,23.106466',\n",
       "   'address': '大沙头',\n",
       "   'typecode': '110000',\n",
       "   'city': []},\n",
       "  {'id': 'B0FFG04437',\n",
       "   'name': '广州塔(东入口)',\n",
       "   'district': '广东省广州市海珠区',\n",
       "   'adcode': '440105',\n",
       "   'location': '113.325752,23.105617',\n",
       "   'address': '滨江东路与艺苑路交叉口东南',\n",
       "   'typecode': '991400',\n",
       "   'city': []}]}"
      ]
     },
     "execution_count": 119,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "keywords='广州塔'\n",
    "input(key,keywords,type=None,location=None,city=None,citylimit='false',datatype=None,sig=None,output='json',callback=None)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## 交通态势\n",
    "交通态势是一类简单的HTTP接口，提供根据用户输入的内容能够返回希望查询的交通态势情况。\n",
    "### 应用方案或场景\n",
    "在app中添加即时查询矩形、圆形或某条道路的交通态势情况功能"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 120,
   "metadata": {},
   "outputs": [],
   "source": [
    "def traffic(key,rectangle,level='5',extensions='base',sig=None,output='json',callback=None):\n",
    "    url='https://restapi.amap.com/v3/traffic/status/rectangle?parameters'\n",
    "    params={\n",
    "        'key':key,\n",
    "        'rectangle':rectangle,\n",
    "        'level':level,\n",
    "        'extensions':extensions,\n",
    "        'sig':sig,\n",
    "        'output':output,\n",
    "        'callback':callback,\n",
    "    }\n",
    "    response=requests.get(url,params)\n",
    "    r=response.json()\n",
    "    return r"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 121,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'info': 'INSUFFICIENT_PRIVILEGES',\n",
       " 'infocode': '10012',\n",
       " 'status': '0',\n",
       " 'sec_code_debug': 'd41d8cd98f00b204e9800998ecf8427e',\n",
       " 'key': '025f09933411b23de9c674584a6bbda9',\n",
       " 'sec_code': 'd41d8cd98f00b204e9800998ecf8427e'}"
      ]
     },
     "execution_count": 121,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "rectangle='116.351147,39.966309;116.357134,39.968727'\n",
    "traffic(key,rectangle,level='5',extensions='base',sig=None,output='json',callback=None)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.8.3"
  },
  "toc": {
   "base_numbering": 1,
   "nav_menu": {},
   "number_sections": true,
   "sideBar": true,
   "skip_h1_title": false,
   "title_cell": "Table of Contents",
   "title_sidebar": "Contents",
   "toc_cell": false,
   "toc_position": {},
   "toc_section_display": true,
   "toc_window_display": false
  }
 },
 "nbformat": 4,
 "nbformat_minor": 4
}
